You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2020/03/11 12:58:41 UTC

[qpid-dispatch] branch master updated: DISPATCH-1579: fixup null pointer issues found by Coverity scan

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

kgiusti 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 6459f25  DISPATCH-1579: fixup null pointer issues found by Coverity scan
6459f25 is described below

commit 6459f2544ae3bd86dde518aa252fead3f6f72fc9
Author: Kenneth Giusti <kg...@apache.org>
AuthorDate: Tue Mar 10 17:04:35 2020 -0400

    DISPATCH-1579: fixup null pointer issues found by Coverity scan
---
 src/container.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/container.c b/src/container.c
index 50a05a7..6d95b7d 100644
--- a/src/container.c
+++ b/src/container.c
@@ -1180,7 +1180,7 @@ bool qd_session_is_q3_blocked(const qd_session_t *qd_ssn)
  */
 void qd_session_cleanup(qd_connection_t *qd_conn)
 {
-    pn_connection_t *pn_conn = qd_conn->pn_conn;
+    pn_connection_t *pn_conn = (qd_conn) ? qd_conn->pn_conn : 0;
     if (!pn_conn)
         return;
 


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