aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regex/plugin_block_regex.c15
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