aboutsummaryrefslogtreecommitdiff
path: root/src/dv/dv_api.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-03-31 09:21:39 +0000
committerNathan S. Evans <evans@in.tum.de>2010-03-31 09:21:39 +0000
commit20409dca4f6b55c3cbbc76e8b80851ea821cd4a8 (patch)
treeea09cb9abd5567869696ad085ccddc70d8850606 /src/dv/dv_api.c
parente96b5f1bb1269cdde73e8a178344069f61080804 (diff)
downloadgnunet-20409dca4f6b55c3cbbc76e8b80851ea821cd4a8.tar.gz
gnunet-20409dca4f6b55c3cbbc76e8b80851ea821cd4a8.zip
coverity fixes, test case tweak
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r--src/dv/dv_api.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c
index ace020c3e..7b1a4f0cf 100644
--- a/src/dv/dv_api.c
+++ b/src/dv/dv_api.c
@@ -22,7 +22,7 @@
22 * @file dv/dv_api.c 22 * @file dv/dv_api.c
23 * @brief library to access the DV service 23 * @brief library to access the DV service
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * @author Not Nathan Evans 25 * @author Nathan Evans
26 */ 26 */
27#include "platform.h" 27#include "platform.h"
28#include "gnunet_bandwidth_lib.h" 28#include "gnunet_bandwidth_lib.h"
@@ -379,7 +379,10 @@ GNUNET_DV_connect (struct GNUNET_SCHEDULER_Handle *sched,
379 handle->receive_cls = receive_handler_cls; 379 handle->receive_cls = receive_handler_cls;
380 380
381 if (handle->client == NULL) 381 if (handle->client == NULL)
382 return NULL; 382 {
383 GNUNET_free(handle);
384 return NULL;
385 }
383 386
384 GNUNET_CLIENT_receive (handle->client, 387 GNUNET_CLIENT_receive (handle->client,
385 &handle_message_receipt, 388 &handle_message_receipt,