diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-01-21 13:37:46 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-01-21 13:37:46 +0000 |
commit | 302bbf76242ccdbafe2877602a54fce5d05b0f55 (patch) | |
tree | 5f6aed68901a4d723153a903a04596e76c25f2c4 /src/regex/plugin_block_regex.c | |
parent | b6751fd4208c7175833504442d2cae91eb775ab4 (diff) | |
download | gnunet-302bbf76242ccdbafe2877602a54fce5d05b0f55.tar.gz gnunet-302bbf76242ccdbafe2877602a54fce5d05b0f55.zip |
- fix
Diffstat (limited to 'src/regex/plugin_block_regex.c')
-rw-r--r-- | src/regex/plugin_block_regex.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/regex/plugin_block_regex.c b/src/regex/plugin_block_regex.c index 9a5ab33ec..dc02b53cf 100644 --- a/src/regex/plugin_block_regex.c +++ b/src/regex/plugin_block_regex.c | |||
@@ -176,10 +176,17 @@ block_plugin_regex_get_key (void *cls, enum GNUNET_BLOCK_Type type, | |||
176 | { | 176 | { |
177 | switch (type) | 177 | switch (type) |
178 | { | 178 | { |
179 | default: | 179 | case GNUNET_BLOCK_TYPE_REGEX: |
180 | /* FIXME */ | 180 | GNUNET_assert (sizeof (struct RegexBlock) <= block_size); |
181 | GNUNET_break (0); | 181 | *key = ((struct RegexBlock *) block)->key; |
182 | return GNUNET_SYSERR; | 182 | return GNUNET_OK; |
183 | case GNUNET_BLOCK_TYPE_REGEX_ACCEPT: | ||
184 | GNUNET_assert (sizeof (struct RegexAccept) <= block_size); | ||
185 | *key = ((struct RegexAccept *) block)->key; | ||
186 | return GNUNET_OK; | ||
187 | default: | ||
188 | GNUNET_break (0); | ||
189 | return GNUNET_SYSERR; | ||
183 | } | 190 | } |
184 | } | 191 | } |
185 | 192 | ||