diff options
Diffstat (limited to 'src/transport/ipc')
| -rw-r--r-- | src/transport/ipc/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
