summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-05-25 23:45:17 -0700
committerGarrett D'Amore <garrett@damore.org>2024-05-30 07:28:48 -0700
commita233f55c780d9138a12e616d826003252b1122c9 (patch)
treecce8712f92c9fd9c1d07a087f4a1192dfaa4bb96
parent5425d9652341a73433cdfc87030426e382716fca (diff)
downloadnng-a233f55c780d9138a12e616d826003252b1122c9.tar.gz
nng-a233f55c780d9138a12e616d826003252b1122c9.tar.bz2
nng-a233f55c780d9138a12e616d826003252b1122c9.zip
fix for pipe statistic crash
-rw-r--r--src/core/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c
index 2fa8d017..1e2842dc 100644
--- a/src/core/pipe.c
+++ b/src/core/pipe.c
@@ -406,7 +406,7 @@ nni_pipe_bump_error(nni_pipe *p, int err)
{
if (p->p_dialer != NULL) {
nni_dialer_bump_error(p->p_dialer, err);
- } else {
+ } else if (p->p_listener != NULL) {
nni_listener_bump_error(p->p_listener, err);
}
}