This is an automated email from the ASF dual-hosted git repository.

kgiusti pushed a commit to branch 1.17.x
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git

commit 370ca07f39b519d644dcfb6c3598e190385bf3a6
Author: Ganesh Murthy <gmur...@apache.org>
AuthorDate: Mon Jul 26 14:38:56 2021 -0400

    DISPATCH-2168: Fix error that showed up in Coverity. Check for addr before 
dereferencing it. This closes #1326
---
 src/router_core/connections.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/router_core/connections.c b/src/router_core/connections.c
index c6e8c26..4f28d48 100644
--- a/src/router_core/connections.c
+++ b/src/router_core/connections.c
@@ -2106,7 +2106,7 @@ static void qdr_link_inbound_detach_CT(qdr_core_t *core, 
qdr_action_t *action, b
     //
     // We had increased the ref_count if the link->no_route was true. Now 
reduce the ref_count
     //
-    if (link->no_route && link->no_route_bound) {
+    if (addr && link->no_route && link->no_route_bound) {
         addr->ref_count--;
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to