gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8751 - gnunet/src/datastore


From: gnunet
Subject: [GNUnet-SVN] r8751 - gnunet/src/datastore
Date: Sun, 19 Jul 2009 05:35:37 -0600

Author: grothoff
Date: 2009-07-19 05:35:37 -0600 (Sun, 19 Jul 2009)
New Revision: 8751

Modified:
   gnunet/src/datastore/datastore_api.c
Log:
bugfixes

Modified: gnunet/src/datastore/datastore_api.c
===================================================================
--- gnunet/src/datastore/datastore_api.c        2009-07-19 11:31:54 UTC (rev 
8750)
+++ gnunet/src/datastore/datastore_api.c        2009-07-19 11:35:37 UTC (rev 
8751)
@@ -294,6 +294,7 @@
   const struct GNUNET_MessageHeader *hdr;
   uint16_t msize;
 
+  GNUNET_assert (cont != NULL);
   hdr = (const struct GNUNET_MessageHeader*) &h[1];
   msize = ntohs(hdr->size);
 #if DEBUG_DATASTORE
@@ -582,9 +583,9 @@
   GNUNET_DATASTORE_ContinuationWithStatus cont = h->response_proc;
   uint16_t msize;
 
-  h->response_proc = NULL;
   if (buf == NULL)
     {
+      h->response_proc = NULL;
       h->message_size = 0;
       cont (h->response_proc_cls, 
            GNUNET_SYSERR,
@@ -631,6 +632,7 @@
   const struct GNUNET_MessageHeader *hdr;
   uint16_t msize;
 
+  GNUNET_assert (cont != NULL);
   hdr = (const struct GNUNET_MessageHeader*) &h[1];
   msize = ntohs(hdr->size);
 #if DEBUG_DATASTORE





reply via email to

[Prev in Thread] Current Thread [Next in Thread]