From 40da92f0fffc7b69f876ca060d9b4e6682e45a8c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 4 Jan 2017 18:30:33 -0800 Subject: Fix close related races (POSIX close is a PITA). --- src/protocol/reqrep/req.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protocol/reqrep/req.c') diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c index b9981c3c..abd6e25c 100644 --- a/src/protocol/reqrep/req.c +++ b/src/protocol/reqrep/req.c @@ -139,6 +139,7 @@ static int nni_req_pipe_add(void *arg) { nni_req_pipe *rp = arg; + if (nni_pipe_peer(rp->pipe) != NNG_PROTO_REP) { return (NNG_EPROTO); } -- cgit v1.2.3-70-g09d2