aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-23 16:05:07 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-23 16:05:07 +0200
commit2cc0ab3717d0193af0a8b5be4aa367ae1874a812 (patch)
tree7c7637fdf2ecc8433fab6c60270be6a01a55ac43 /src/namestore/namestore_api.c
parent4d9f7493cf96f560a853d2fbe34e7eee2065145d (diff)
downloadgnunet-2cc0ab3717d0193af0a8b5be4aa367ae1874a812.tar.gz
gnunet-2cc0ab3717d0193af0a8b5be4aa367ae1874a812.zip
fix misc namestore crashes from pq migration
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r--src/namestore/namestore_api.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index 933ba7b95..92068cc01 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -1303,11 +1303,14 @@ GNUNET_NAMESTORE_zone_iteration_stop (struct GNUNET_NAMESTORE_ZoneIterator *it)
1303 1303
1304 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1304 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1305 "Sending ZONE_ITERATION_STOP message\n"); 1305 "Sending ZONE_ITERATION_STOP message\n");
1306 env = GNUNET_MQ_msg (msg, 1306 if (NULL != h->mq)
1307 GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP); 1307 {
1308 msg->gns_header.r_id = htonl (it->op_id); 1308 env = GNUNET_MQ_msg (msg,
1309 GNUNET_MQ_send (h->mq, 1309 GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP);
1310 env); 1310 msg->gns_header.r_id = htonl (it->op_id);
1311 GNUNET_MQ_send (h->mq,
1312 env);
1313 }
1311 free_ze (it); 1314 free_ze (it);
1312} 1315}
1313 1316