From 2e6caf50d32666619490efd5a6289cea8d6e65df Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Jun 2014 12:20:00 +0000 Subject: [PATCH] -fix #3301 --- src/namestore/gnunet-namestore.c | 52 ++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 07c79f033..8c8c7660e 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c @@ -459,23 +459,63 @@ get_existing_record (void *cls, { struct GNUNET_GNSRECORD_Data rdn[rd_count + 1]; struct GNUNET_GNSRECORD_Data *rde; + unsigned int i; add_qe = NULL; if ( (NULL != zone_key) && (0 != strcmp (rec_name, name)) ) { GNUNET_break (0); + ret = 1; + test_finished (); return; } - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received %u records for name `%s'\n", - rd_count, rec_name); - + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Received %u records for name `%s'\n", + rd_count, rec_name); + for (i=0;idata = data; rde->data_size = data_size; -- 2.25.1