change
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 26 Oct 2012 11:38:04 +0000 (11:38 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 26 Oct 2012 11:38:04 +0000 (11:38 +0000)
src/transport/plugin_transport_unix.c

index a5f4f609ba6807c546df6ce242b0d8c9cbba2cc7..563df7cc7b80d6507bf8fce07d6b5f040a1d5e4a 100644 (file)
@@ -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 */