fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 22 Feb 2010 08:37:53 +0000 (08:37 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 22 Feb 2010 08:37:53 +0000 (08:37 +0000)
src/datastore/gnunet-service-datastore.c

index 161fbc1d8b3c777cd8b78374e85f15b19cdeaece..b9d82fdc2901834a0964dab8cfc61906f319c863 100644 (file)
@@ -546,8 +546,9 @@ get_next(void *next_cls,
   if (status != GNUNET_OK)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-                 _("Failed to transmit an item to the client; aborting iteration.\n"));    
-      plugin->api->next_request (next_cls, GNUNET_YES);
+                 _("Failed to transmit an item to the client; aborting iteration.\n"));
+      if (plugin != NULL)
+       plugin->api->next_request (next_cls, GNUNET_YES);
       return;
     }
   plugin->api->next_request (next_cls, GNUNET_NO);