diff options
-rw-r--r-- | src/transport/plugin_transport_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index a5f4f609b..563df7cc7 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -605,8 +605,10 @@ unix_real_send (void *cls, | |||
605 | { | 605 | { |
606 | if (sent == GNUNET_SYSERR) | 606 | if (sent == GNUNET_SYSERR) |
607 | cont (cont_cls, target, GNUNET_SYSERR, payload, 0); | 607 | cont (cont_cls, target, GNUNET_SYSERR, payload, 0); |
608 | if (sent > 0) | 608 | else if (sent > 0) |
609 | cont (cont_cls, target, GNUNET_OK, payload, msgbuf_size); | 609 | cont (cont_cls, target, GNUNET_OK, payload, msgbuf_size); |
610 | else | ||
611 | GNUNET_break (0); | ||
610 | } | 612 | } |
611 | 613 | ||
612 | /* return number of bytes successfully sent */ | 614 | /* return number of bytes successfully sent */ |