diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-02 12:58:53 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-02 12:58:53 -0700 |
| commit | 424c2238c97d26d8d5fb30fb1449a96396269da0 (patch) | |
| tree | a5d3ed01e348f4644b06d630a3e92997944152f6 /src/core/endpt.c | |
| parent | 53a22a96d49e8b44c7e70b59559db87f57158a82 (diff) | |
| download | nng-424c2238c97d26d8d5fb30fb1449a96396269da0.tar.gz nng-424c2238c97d26d8d5fb30fb1449a96396269da0.tar.bz2 nng-424c2238c97d26d8d5fb30fb1449a96396269da0.zip | |
Transports allocate their pipe structures during connect & accept.
Diffstat (limited to 'src/core/endpt.c')
| -rw-r--r-- | src/core/endpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c index e3f78ecd..223d86a3 100644 --- a/src/core/endpt.c +++ b/src/core/endpt.c @@ -245,7 +245,7 @@ nni_ep_connect(nni_ep *ep) 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); + rv = ep->ep_ops.ep_connect(ep->ep_data, &pipe->p_tran_data); if (rv != 0) { nni_pipe_remove(pipe); return (rv); @@ -411,7 +411,7 @@ nni_ep_accept(nni_ep *ep) 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); + rv = ep->ep_ops.ep_accept(ep->ep_data, &pipe->p_tran_data); if (rv != 0) { nni_pipe_remove(pipe); return (rv); |
