You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2018/07/26 20:32:13 UTC

qpid-dispatch git commit: DISPATCH-1089 - Send empty, not null, router-side termini with auto-link attaches.

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 92ad24f11 -> 7a77931a1


DISPATCH-1089 - Send empty, not null, router-side termini with auto-link attaches.


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

Branch: refs/heads/master
Commit: 7a77931a16d272fda58c4b7b854de041fa6df1e7
Parents: 92ad24f
Author: Ted Ross <tr...@redhat.com>
Authored: Thu Jul 26 16:29:43 2018 -0400
Committer: Ted Ross <tr...@redhat.com>
Committed: Thu Jul 26 16:29:43 2018 -0400

----------------------------------------------------------------------
 src/router_core/route_control.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/7a77931a/src/router_core/route_control.c
----------------------------------------------------------------------
diff --git a/src/router_core/route_control.c b/src/router_core/route_control.c
index 4d4d1b8..0bb916e 100644
--- a/src/router_core/route_control.c
+++ b/src/router_core/route_control.c
@@ -229,14 +229,14 @@ static void qdr_auto_link_activate_CT(qdr_core_t *core, qdr_auto_link_t *al, qdr
     qdr_route_log_CT(core, "Auto Link Activated", al->name, al->identity, conn);
 
     if (al->addr) {
-        qdr_terminus_t *source = 0;
-        qdr_terminus_t *target = 0;
-        qdr_terminus_t *term   = qdr_terminus(0);
+        qdr_terminus_t *source = qdr_terminus(0);
+        qdr_terminus_t *target = qdr_terminus(0);
+        qdr_terminus_t *term;
 
         if (al->dir == QD_INCOMING)
-            source = term;
+            term = source;
         else
-            target = term;
+            term = target;
 
         key = (const char*) qd_hash_key_by_handle(al->addr->hash_handle);
         if (key || al->external_addr) {


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