summaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r--src/namestore/namestore_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index c845b5019..2d5327e06 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -690,6 +690,12 @@ handle_zone_to_name_response (void *cls,
LOG (GNUNET_ERROR_TYPE_DEBUG, "Received ZONE_TO_NAME_RESPONSE\n");
qe = find_qe (h, ntohl (msg->gns_header.r_id));
+ if (NULL == qe)
+ {
+ LOG (GNUNET_ERROR_TYPE_WARNING,
+ "Response queue already gone...\n");
+ return;
+ }
res = ntohs (msg->res);
switch (res)
{