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 2015/07/20 20:01:57 UTC

qpid-proton git commit: PROTON-905: fix to prevent crash with latest qpidd

Repository: qpid-proton
Updated Branches:
  refs/heads/master 02789482e -> d9ce3cfd0


PROTON-905: fix to prevent crash with latest qpidd


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/d9ce3cfd
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/d9ce3cfd
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/d9ce3cfd

Branch: refs/heads/master
Commit: d9ce3cfd0916ae3719cb39a83a6174c5f88b10bb
Parents: 0278948
Author: Gordon Sim <gs...@redhat.com>
Authored: Mon Jul 20 14:00:33 2015 -0400
Committer: Ken Giusti <kg...@apache.org>
Committed: Mon Jul 20 14:00:33 2015 -0400

----------------------------------------------------------------------
 proton-c/src/engine/engine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d9ce3cfd/proton-c/src/engine/engine.c
----------------------------------------------------------------------
diff --git a/proton-c/src/engine/engine.c b/proton-c/src/engine/engine.c
index ffbdf95..9043e0b 100644
--- a/proton-c/src/engine/engine.c
+++ b/proton-c/src/engine/engine.c
@@ -761,7 +761,7 @@ void pn_clear_modified(pn_connection_t *connection, pn_endpoint_t *endpoint)
     // the modified list (see pni_preserve_child() - the endpoint is considered
     // 'bound').  This increment/decrement will re-run the finalize in this
     // case.
-    if (endpoint != &connection->endpoint) {
+    if (endpoint != &connection->endpoint && endpoint->freed && !endpoint->referenced) {
         pn_incref(endpoint);
         pn_decref(endpoint);
     }


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