From: Christian Grothoff Date: Tue, 14 Jun 2011 11:18:06 +0000 (+0000) Subject: asserts X-Git-Tag: initial-import-from-subversion-38251~18228 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1542d0bae35925dc78cfb931e841b06ae15ff52f;p=oweals%2Fgnunet.git asserts --- 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, return; } ism = (const struct IndexStartMessage*) message; + if (0 != ism->reserved) + { + GNUNET_break (0); + GNUNET_SERVER_receive_done (client, + GNUNET_SYSERR); + return; + } fn = GNUNET_STRINGS_filename_expand ((const char*) &ism[1]); if (fn == NULL) { @@ -472,6 +479,13 @@ GNUNET_FS_handle_unindex (void *cls, int found; um = (const struct UnindexMessage*) message; + if (0 != um->reserved) + { + GNUNET_break (0); + GNUNET_SERVER_receive_done (client, + GNUNET_SYSERR); + return; + } found = GNUNET_NO; prev = NULL; pos = indexed_files;