From baaedd4fdfb10fc28d9923be9e1d28663d621eca Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 12 May 2010 15:51:49 +0000 Subject: moving closer towards a working dv implementation --- src/dv/dv_api.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/dv/dv_api.c') diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c index 28bd0dcac..b7337d45c 100644 --- a/src/dv/dv_api.c +++ b/src/dv/dv_api.c @@ -345,6 +345,10 @@ void handle_message_receipt (void *cls, GNUNET_HashCode uidhash; struct SendCallbackContext *send_ctx; +#if DEBUG_DV + GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "dv api receives message!\n"); +#endif + if (msg == NULL) { return; /* Connection closed? */ @@ -474,8 +478,7 @@ int GNUNET_DV_send (struct GNUNET_DV_Handle *dv_handle, send_ctx = GNUNET_malloc(sizeof(struct SendCallbackContext)); send_ctx->cont = cont; - if (cont == NULL) - fprintf(stderr, "DV_SEND called with null continuation!\n"); + send_ctx->cont_cls = cont_cls; memcpy(&send_ctx->target, target, sizeof(struct GNUNET_PeerIdentity)); -- cgit v1.2.3