aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-07-19 11:35:37 +0000
committerChristian Grothoff <christian@grothoff.org>2009-07-19 11:35:37 +0000
commit4d715e1d0fd982531fe45c8b6517115f4c4bfbc1 (patch)
tree6d54ac43a92745cd0c916cb5465e8cfa600bf3fc /src/datastore/datastore_api.c
parent1e879063d6c677c3cb0f57bbc61b8d908aeb2a05 (diff)
downloadgnunet-4d715e1d0fd982531fe45c8b6517115f4c4bfbc1.tar.gz
gnunet-4d715e1d0fd982531fe45c8b6517115f4c4bfbc1.zip
bugfixes
Diffstat (limited to 'src/datastore/datastore_api.c')
-rw-r--r--src/datastore/datastore_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c
index 6f02e6fea..dfca2cca3 100644
--- a/src/datastore/datastore_api.c
+++ b/src/datastore/datastore_api.c
@@ -294,6 +294,7 @@ transmit_for_status (struct GNUNET_DATASTORE_Handle *h,
294 const struct GNUNET_MessageHeader *hdr; 294 const struct GNUNET_MessageHeader *hdr;
295 uint16_t msize; 295 uint16_t msize;
296 296
297 GNUNET_assert (cont != NULL);
297 hdr = (const struct GNUNET_MessageHeader*) &h[1]; 298 hdr = (const struct GNUNET_MessageHeader*) &h[1];
298 msize = ntohs(hdr->size); 299 msize = ntohs(hdr->size);
299#if DEBUG_DATASTORE 300#if DEBUG_DATASTORE
@@ -582,9 +583,9 @@ transmit_get_result (void *cls,
582 GNUNET_DATASTORE_ContinuationWithStatus cont = h->response_proc; 583 GNUNET_DATASTORE_ContinuationWithStatus cont = h->response_proc;
583 uint16_t msize; 584 uint16_t msize;
584 585
585 h->response_proc = NULL;
586 if (buf == NULL) 586 if (buf == NULL)
587 { 587 {
588 h->response_proc = NULL;
588 h->message_size = 0; 589 h->message_size = 0;
589 cont (h->response_proc_cls, 590 cont (h->response_proc_cls,
590 GNUNET_SYSERR, 591 GNUNET_SYSERR,
@@ -631,6 +632,7 @@ transmit_for_result (struct GNUNET_DATASTORE_Handle *h,
631 const struct GNUNET_MessageHeader *hdr; 632 const struct GNUNET_MessageHeader *hdr;
632 uint16_t msize; 633 uint16_t msize;
633 634
635 GNUNET_assert (cont != NULL);
634 hdr = (const struct GNUNET_MessageHeader*) &h[1]; 636 hdr = (const struct GNUNET_MessageHeader*) &h[1];
635 msize = ntohs(hdr->size); 637 msize = ntohs(hdr->size);
636#if DEBUG_DATASTORE 638#if DEBUG_DATASTORE