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 2018/11/06 21:28:58 UTC

qpid-dispatch git commit: DISPATCH-1171 - Fixed code in closest forwarder that was messing up the elements in the list leading to crash

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master bdd2aa389 -> 7b219ce7c


DISPATCH-1171 - Fixed code in closest forwarder that was messing up the elements in the list leading to crash


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

Branch: refs/heads/master
Commit: 7b219ce7cbd75eb187286b36870ca2cd70981cac
Parents: bdd2aa3
Author: Ganesh Murthy <gm...@redhat.com>
Authored: Tue Nov 6 16:28:41 2018 -0500
Committer: Ganesh Murthy <gm...@redhat.com>
Committed: Tue Nov 6 16:28:41 2018 -0500

----------------------------------------------------------------------
 src/router_core/forwarder.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/7b219ce7/src/router_core/forwarder.c
----------------------------------------------------------------------
diff --git a/src/router_core/forwarder.c b/src/router_core/forwarder.c
index 56d998e..e14c70c 100644
--- a/src/router_core/forwarder.c
+++ b/src/router_core/forwarder.c
@@ -577,6 +577,7 @@ int qdr_forward_closest_CT(qdr_core_t      *core,
         // so deliveries will be distributed among the subscribers in a round-robin pattern.
         //
         if (DEQ_SIZE(addr->rlinks) > 1) {
+            link_ref = DEQ_HEAD(addr->rlinks);
             DEQ_REMOVE_HEAD(addr->rlinks);
             DEQ_INSERT_TAIL(addr->rlinks, link_ref);
         }


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