diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-19 20:36:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-19 20:36:36 +0000 |
commit | a99f6f6c929f79119b91e0fbf9b130ebeab706e3 (patch) | |
tree | 26c05a17167cba1798221fa053ff7156796f2e58 /src/fs/fs_search.c | |
parent | 1b9a6fa6063c79120be8e9cf4bd42863751f04db (diff) | |
download | gnunet-a99f6f6c929f79119b91e0fbf9b130ebeab706e3.tar.gz gnunet-a99f6f6c929f79119b91e0fbf9b130ebeab706e3.zip |
-extra asserts just to be helpful in case #2000 resurfaces
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r-- | src/fs/fs_search.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 5c19835f5..55db586b0 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 Christian Grothoff (and other contributing authors) | 3 | (C) 2001-2006, 2008-2011 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -1012,6 +1012,7 @@ transmit_search_request (void *cls, size_t size, void *buf) | |||
1012 | GNUNET_CONTAINER_multihashmap_iterate (sc->master_result_map, | 1012 | GNUNET_CONTAINER_multihashmap_iterate (sc->master_result_map, |
1013 | &build_result_set, &mbc); | 1013 | &build_result_set, &mbc); |
1014 | sm->header.size = htons (msize); | 1014 | sm->header.size = htons (msize); |
1015 | GNUNET_assert (sqms >= sc->search_request_map_offset); | ||
1015 | if (sqms != sc->search_request_map_offset) | 1016 | if (sqms != sc->search_request_map_offset) |
1016 | { | 1017 | { |
1017 | /* more requesting to be done... */ | 1018 | /* more requesting to be done... */ |
@@ -1050,6 +1051,7 @@ transmit_search_request (void *cls, size_t size, void *buf) | |||
1050 | GNUNET_CONTAINER_multihashmap_iterate (sc->master_result_map, | 1051 | GNUNET_CONTAINER_multihashmap_iterate (sc->master_result_map, |
1051 | &build_result_set, &mbc); | 1052 | &build_result_set, &mbc); |
1052 | sm->header.size = htons (msize); | 1053 | sm->header.size = htons (msize); |
1054 | GNUNET_assert (sqms >= sc->search_request_map_offset); | ||
1053 | if (sqms != sc->search_request_map_offset) | 1055 | if (sqms != sc->search_request_map_offset) |
1054 | { | 1056 | { |
1055 | /* more requesting to be done... */ | 1057 | /* more requesting to be done... */ |