diff options
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r-- | src/dv/dv_api.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c index e3ba995c3..d74453376 100644 --- a/src/dv/dv_api.c +++ b/src/dv/dv_api.c | |||
@@ -308,7 +308,7 @@ cleanup_send_cb (void *cls, | |||
308 | while (NULL != (th = peer->head)) | 308 | while (NULL != (th = peer->head)) |
309 | { | 309 | { |
310 | GNUNET_CONTAINER_DLL_remove (peer->head, peer->tail, th); | 310 | GNUNET_CONTAINER_DLL_remove (peer->head, peer->tail, th); |
311 | th->cb (th->cb_cls, GNUNET_SYSERR); | 311 | th->cb (th->cb_cls); |
312 | GNUNET_free (th); | 312 | GNUNET_free (th); |
313 | } | 313 | } |
314 | GNUNET_free (peer); | 314 | GNUNET_free (peer); |
@@ -416,7 +416,7 @@ handle_message_receipt (void *cls, | |||
416 | GNUNET_CONTAINER_DLL_remove (sh->th_head, | 416 | GNUNET_CONTAINER_DLL_remove (sh->th_head, |
417 | sh->th_tail, | 417 | sh->th_tail, |
418 | th); | 418 | th); |
419 | th->cb (th->cb_cls, GNUNET_SYSERR); | 419 | th->cb (th->cb_cls); |
420 | GNUNET_free (th); | 420 | GNUNET_free (th); |
421 | } | 421 | } |
422 | } | 422 | } |
@@ -473,10 +473,7 @@ handle_message_receipt (void *cls, | |||
473 | GNUNET_CONTAINER_DLL_remove (peer->head, | 473 | GNUNET_CONTAINER_DLL_remove (peer->head, |
474 | peer->tail, | 474 | peer->tail, |
475 | th); | 475 | th); |
476 | th->cb (th->cb_cls, | 476 | th->cb (th->cb_cls); |
477 | (ntohs (ack->header.type) == GNUNET_MESSAGE_TYPE_DV_SEND_ACK) | ||
478 | ? GNUNET_OK | ||
479 | : GNUNET_SYSERR); | ||
480 | GNUNET_free (th); | 477 | GNUNET_free (th); |
481 | break; | 478 | break; |
482 | } | 479 | } |