- use proper signedness
[oweals/gnunet.git] / src / transport / gnunet-transport.c
index 8bfa6f7aa72507c1a28db5938a44af6954b16aca..bb856bd6fc95804e59773914180562486f7b83e6 100644 (file)
@@ -487,7 +487,7 @@ transmit_data (void *cls, size_t size, void *buf)
 {
   struct GNUNET_MessageHeader *m = buf;
 
-  if ((NULL == buf) && (0 == size))
+  if ((NULL == buf) || (0 == size))
   {
     th = NULL;
     return 0;