You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2019/02/27 17:58:08 UTC

[qpid-dispatch] branch master updated: DISPATCH-1272 - Zeroed the qd_link->pn_link reference so there would be no attempt to send out a detach by CORE_link_detach if the outgoing pn_link has already been freed

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 8e94c5c  DISPATCH-1272 - Zeroed the qd_link->pn_link reference so there would be no attempt to send out a detach by CORE_link_detach if the outgoing pn_link has already been freed
8e94c5c is described below

commit 8e94c5cf6f98083af3066b8cff2fd5aa0b176027
Author: Ganesh Murthy <gm...@redhat.com>
AuthorDate: Wed Feb 27 12:56:48 2019 -0500

    DISPATCH-1272 - Zeroed the qd_link->pn_link reference so there would be no attempt to send out a detach by CORE_link_detach if the outgoing pn_link has already been freed
---
 src/container.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/container.c b/src/container.c
index 12c89b9..2e9bace 100644
--- a/src/container.c
+++ b/src/container.c
@@ -401,8 +401,14 @@ void qd_conn_event_batch_complete(qd_container_t *container, qd_connection_t *qd
 
     while(to_free) {
         if (!conn_closed) {
-            if (to_free->pn_link)
+            if (to_free->pn_link) {
+                qd_link_t *qd_link = (qd_link_t*) pn_link_get_context(to_free->pn_link);
+                if (qd_link) {
+                    qd_link->pn_link = 0;
+                }
+                pn_link_set_context(to_free->pn_link, 0);
                 pn_link_free(to_free->pn_link);
+            }
             if (to_free->pn_session)
                 pn_session_free(to_free->pn_session);
         }


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