fix tests and do not assert since this will break make check
[oweals/gnunet.git] / src / namestore / gnunet-service-namestore.c
index 2353eadec3d59aa7c92d93e38d24c92976c25f89..f793c50d7fda8c8f521f4f21b84d4c6027cbbe85 100644 (file)
@@ -656,6 +656,12 @@ handle_record_lookup (void *cls,
               "Received `%s' message for name `%s'\n",
               "NAMESTORE_RECORD_LOOKUP", name_tmp);
 
+  if (NULL == (client_lookup (client)))
+  {
+    GNUNET_break (0);
+    GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
+    return;
+  }
 
   rlc.label = name_tmp;
   rlc.found = GNUNET_NO;