diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-31 15:06:43 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-31 15:06:43 -0800 |
| commit | 8e24f5b19bcadaf0c08bb6e3b7583461f703b269 (patch) | |
| tree | 739c8975a979f88b901fffc7f611b8651f317b29 /src/core/endpt.c | |
| parent | d8ffb0b277e7f5d5edc17585543ee78921efc077 (diff) | |
| download | nng-8e24f5b19bcadaf0c08bb6e3b7583461f703b269.tar.gz nng-8e24f5b19bcadaf0c08bb6e3b7583461f703b269.tar.bz2 nng-8e24f5b19bcadaf0c08bb6e3b7583461f703b269.zip | |
Finally closed the silly endpoint / pipe use-after-free race.
Diffstat (limited to 'src/core/endpt.c')
| -rw-r--r-- | src/core/endpt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c index 67d17cea..9c3d9b50 100644 --- a/src/core/endpt.c +++ b/src/core/endpt.c @@ -115,6 +115,7 @@ nni_endpt_connect(nni_endpt *ep, nni_pipe **pp) return (rv); } ep->ep_pipe = pipe; + pipe->p_ep = ep; *pp = pipe; return (0); } |
