From a99f6f6c929f79119b91e0fbf9b130ebeab706e3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Dec 2011 20:36:36 +0000 Subject: [PATCH] -extra asserts just to be helpful in case #2000 resurfaces --- src/fs/fs_search.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ /* This file is part of GNUnet. - (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 Christian Grothoff (and other contributing authors) + (C) 2001-2006, 2008-2011 Christian Grothoff (and other contributing authors) GNUnet is free software; you can redistribute it and/or modify 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) GNUNET_CONTAINER_multihashmap_iterate (sc->master_result_map, &build_result_set, &mbc); sm->header.size = htons (msize); + GNUNET_assert (sqms >= sc->search_request_map_offset); if (sqms != sc->search_request_map_offset) { /* more requesting to be done... */ @@ -1050,6 +1051,7 @@ transmit_search_request (void *cls, size_t size, void *buf) GNUNET_CONTAINER_multihashmap_iterate (sc->master_result_map, &build_result_set, &mbc); sm->header.size = htons (msize); + GNUNET_assert (sqms >= sc->search_request_map_offset); if (sqms != sc->search_request_map_offset) { /* more requesting to be done... */ -- 2.25.1