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

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


The following commit(s) were added to refs/heads/main by this push:
     new b6f259f  DISPATCH-2168: Fix error that showed up in Coverity. Check 
for addr before dereferencing it. This closes #1326
b6f259f is described below

commit b6f259fc4a8308eb1f4f2c5307268e5bc5104460
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