From 79aed583c14424dcb737eafcdc5273cc4ed40d75 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 24 May 2020 16:20:13 -0700 Subject: fixes #1241 SIGSEGV in RepReq's rep0 recv - use after free This also affects the respondent protocol. Examination of the other protocols did not turn up any evidence of the same issue. --- src/protocol/reqrep0/req.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/protocol/reqrep0/req.c') diff --git a/src/protocol/reqrep0/req.c b/src/protocol/reqrep0/req.c index cb716941..0112f835 100644 --- a/src/protocol/reqrep0/req.c +++ b/src/protocol/reqrep0/req.c @@ -311,6 +311,8 @@ req0_recv_cb(void *arg) // Schedule another receive while we are processing this. nni_mtx_lock(&s->mtx); + + // NB: If close was called, then this will just abort. nni_pipe_recv(p->pipe, &p->aio_recv); // Look for a context to receive it. -- cgit v1.2.3-70-g09d2