This is an automated email from the ASF dual-hosted git repository. gmurthy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push: new 37680cd DISPATCH-2019: Check for presence of key obtained from hash handle 37680cd is described below commit 37680cdb97d1935ad3b9c3cf78358ae11f207c46 Author: Ganesh Murthy <gmur...@apache.org> AuthorDate: Fri Mar 26 15:46:11 2021 -0400 DISPATCH-2019: Check for presence of key obtained from hash handle --- src/router_core/router_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router_core/router_core.c b/src/router_core/router_core.c index 0f83c1f..9540be0 100644 --- a/src/router_core/router_core.c +++ b/src/router_core/router_core.c @@ -579,7 +579,7 @@ void qdr_core_remove_address(qdr_core_t *core, qdr_address_t *addr) DEQ_REMOVE(core->addrs, addr); if (addr->hash_handle) { const char *a_str = (const char *)qd_hash_key_by_handle(addr->hash_handle); - if (QDR_IS_LINK_ROUTE(a_str[0])) { + if (a_str && QDR_IS_LINK_ROUTE(a_str[0])) { qd_iterator_t *iter = qd_iterator_string(a_str, ITER_VIEW_ALL); qdr_link_route_unmap_pattern_CT(core, iter); qd_iterator_free(iter); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org