From d8dc59b1cc0324392fd90f9e5d6f5adc876d4de9 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 26 Oct 2012 11:38:04 +0000 Subject: [PATCH] change --- src/transport/plugin_transport_unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, { if (sent == GNUNET_SYSERR) cont (cont_cls, target, GNUNET_SYSERR, payload, 0); - if (sent > 0) + else if (sent > 0) cont (cont_cls, target, GNUNET_OK, payload, msgbuf_size); + else + GNUNET_break (0); } /* return number of bytes successfully sent */ -- 2.25.1