aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-31 14:41:41 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-31 14:41:41 -0800
commitc1e9b7ed8dec2e9aab6a00966e0f173a39795814 (patch)
treec2ce973cf11f34751b6c2be4c4c99253efbf9f83 /src/core/endpt.c
parent4e4203fb1cddcfb205d602dd76cd0a8338321ee6 (diff)
downloadnng-c1e9b7ed8dec2e9aab6a00966e0f173a39795814.tar.gz
nng-c1e9b7ed8dec2e9aab6a00966e0f173a39795814.tar.bz2
nng-c1e9b7ed8dec2e9aab6a00966e0f173a39795814.zip
Use after free fix.
Diffstat (limited to 'src/core/endpt.c')
-rw-r--r--src/core/endpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c
index 2d2f62ce..d077122d 100644
--- a/src/core/endpt.c
+++ b/src/core/endpt.c
@@ -108,6 +108,7 @@ nni_endpt_connect(nni_endpt *ep, nni_pipe **pp)
nni_pipe_destroy(pipe);
return (rv);
}
+ ep->ep_pipe = pipe;
*pp = pipe;
return (0);
}