aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/endpt.c')
-rw-r--r--src/core/endpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c
index 9411c220..362af82c 100644
--- a/src/core/endpt.c
+++ b/src/core/endpt.c
@@ -206,7 +206,7 @@ nni_ep_connect(nni_ep *ep, nni_pipe **pp)
nni_pipe *pipe;
int rv;
- if ((rv = nni_pipe_create(&pipe, ep)) != 0) {
+ if ((rv = nni_pipe_create(&pipe, ep, ep->ep_sock, ep->ep_tran)) != 0) {
return (rv);
}
rv = ep->ep_ops.ep_connect(ep->ep_data, &pipe->p_tran_data);
@@ -358,7 +358,7 @@ nni_ep_accept(nni_ep *ep, nni_pipe **pp)
if (ep->ep_close) {
return (NNG_ECLOSED);
}
- if ((rv = nni_pipe_create(&pipe, ep)) != 0) {
+ if ((rv = nni_pipe_create(&pipe, ep, ep->ep_sock, ep->ep_tran)) != 0) {
return (rv);
}
rv = ep->ep_ops.ep_accept(ep->ep_data, &pipe->p_tran_data);