diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-14 11:18:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-14 11:18:06 +0000 |
commit | 1542d0bae35925dc78cfb931e841b06ae15ff52f (patch) | |
tree | 1aa50ef9de9197284d8b0ff6822f13ba93658802 /src/fs/gnunet-service-fs_indexing.c | |
parent | 75400ed640cf74348b323bfbabd4be6c08ecfafc (diff) | |
download | gnunet-1542d0bae35925dc78cfb931e841b06ae15ff52f.tar.gz gnunet-1542d0bae35925dc78cfb931e841b06ae15ff52f.zip |
asserts
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.c')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index dc6b82952..f97a0c6e6 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -346,6 +346,13 @@ GNUNET_FS_handle_index_start (void *cls, | |||
346 | return; | 346 | return; |
347 | } | 347 | } |
348 | ism = (const struct IndexStartMessage*) message; | 348 | ism = (const struct IndexStartMessage*) message; |
349 | if (0 != ism->reserved) | ||
350 | { | ||
351 | GNUNET_break (0); | ||
352 | GNUNET_SERVER_receive_done (client, | ||
353 | GNUNET_SYSERR); | ||
354 | return; | ||
355 | } | ||
349 | fn = GNUNET_STRINGS_filename_expand ((const char*) &ism[1]); | 356 | fn = GNUNET_STRINGS_filename_expand ((const char*) &ism[1]); |
350 | if (fn == NULL) | 357 | if (fn == NULL) |
351 | { | 358 | { |
@@ -472,6 +479,13 @@ GNUNET_FS_handle_unindex (void *cls, | |||
472 | int found; | 479 | int found; |
473 | 480 | ||
474 | um = (const struct UnindexMessage*) message; | 481 | um = (const struct UnindexMessage*) message; |
482 | if (0 != um->reserved) | ||
483 | { | ||
484 | GNUNET_break (0); | ||
485 | GNUNET_SERVER_receive_done (client, | ||
486 | GNUNET_SYSERR); | ||
487 | return; | ||
488 | } | ||
475 | found = GNUNET_NO; | 489 | found = GNUNET_NO; |
476 | prev = NULL; | 490 | prev = NULL; |
477 | pos = indexed_files; | 491 | pos = indexed_files; |