From e89202c83138bbc6bad1d5c5dcf55e00c0ee1800 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 7 May 2018 14:58:07 -0700 Subject: fixes #413 desire --count option for nngcat fixes #249 nngcat needs test cases fixes #416 transports do not permit unlimited message size with 0 fixes #417 nngcat truncates input files to 4k fixes #348 nngcat should have switch to adjust maximum receive size --- src/transport/ipc/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/transport/ipc') diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c index e5f3d533..c91606c6 100644 --- a/src/transport/ipc/ipc.c +++ b/src/transport/ipc/ipc.c @@ -302,7 +302,7 @@ nni_ipc_pipe_recv_cb(void *arg) // Make sure the message payload is not too big. If it is // the caller will shut down the pipe. - if (len > pipe->rcvmax) { + if ((len > pipe->rcvmax) && (pipe->rcvmax > 0)) { rv = NNG_EMSGSIZE; goto recv_error; } -- cgit v1.2.3-70-g09d2