From 39f2e06d4291b45af25084ec4f46d0946c387487 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 6 Sep 2012 18:17:21 +0000 Subject: [PATCH] Return size, not 0, in ncat_broadcast when o.recvonly is true. This is what ncat_send does. --- ncat/ncat_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncat/ncat_core.c b/ncat/ncat_core.c index 435abf7e6..8e0b55735 100644 --- a/ncat/ncat_core.c +++ b/ncat/ncat_core.c @@ -315,7 +315,7 @@ int ncat_broadcast(fd_set *fds, const fd_list_t *fdlist, const char *msg, size_t int i, ret; if (o.recvonly) - return 0; + return size; ret = 0; for (i = 0; i <= fdlist->fdmax; i++) {