diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-06-22 07:17:38 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-06-22 07:17:38 -0700 |
| commit | 8135cbf74697b1ad9f89b134e3583088e99ecbe4 (patch) | |
| tree | b5daada2b7e9ebce20acdc08c2ad20ac65072706 /src/sp/transport | |
| parent | fb153297c987e47bde25faa113a191c16eab901a (diff) | |
| download | nng-8135cbf74697b1ad9f89b134e3583088e99ecbe4.tar.gz nng-8135cbf74697b1ad9f89b134e3583088e99ecbe4.tar.bz2 nng-8135cbf74697b1ad9f89b134e3583088e99ecbe4.zip | |
Hold the pipe across for the DTLS rx cb.
Diffstat (limited to 'src/sp/transport')
| -rw-r--r-- | src/sp/transport/dtls/dtls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp/transport/dtls/dtls.c b/src/sp/transport/dtls/dtls.c index 81c51a32..43c2a7cd 100644 --- a/src/sp/transport/dtls/dtls.c +++ b/src/sp/transport/dtls/dtls.c @@ -985,6 +985,7 @@ dtls_rx_cb(void *arg) } memcpy(nni_msg_body(msg), ep->rx_buf, nni_aio_count(aio)); dtls_start_rx(ep); + nni_pipe_hold(p->npipe); nni_mtx_unlock(&ep->mtx); nni_mtx_lock(&p->lower_mtx); @@ -1004,6 +1005,7 @@ dtls_rx_cb(void *arg) default: nni_pipe_close(p->npipe); } + nni_pipe_rele(p->npipe); return; fail: |
