From 4d715e1d0fd982531fe45c8b6517115f4c4bfbc1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Jul 2009 11:35:37 +0000 Subject: [PATCH] bugfixes --- src/datastore/datastore_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, 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 @@ transmit_get_result (void *cls, 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 @@ transmit_for_result (struct GNUNET_DATASTORE_Handle *h, 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 -- 2.25.1