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 2017/12/08 16:54:38 UTC

qpid-dispatch git commit: NO-JIRA - Demote link from inter-router to endpoint if on the wrong kind of connection.

Repository: qpid-dispatch
Updated Branches:
  refs/heads/0.8.1 [created] b6cd034f3
Updated Tags:  refs/tags/0.8.1-rc1 [created] b6cd034f3


NO-JIRA - Demote link from inter-router to endpoint if on the wrong kind of connection.


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

Branch: refs/heads/0.8.1
Commit: b6cd034f389968f836668fcdb3f4e49689b08763
Parents: ced41ae
Author: Ted Ross <tr...@redhat.com>
Authored: Tue Nov 21 14:02:50 2017 -0500
Committer: Ted Ross <tr...@redhat.com>
Committed: Fri Dec 8 11:45:28 2017 -0500

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


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/b6cd034f/src/router_core/connections.c
----------------------------------------------------------------------
diff --git a/src/router_core/connections.c b/src/router_core/connections.c
index b796a00..552a083 100644
--- a/src/router_core/connections.c
+++ b/src/router_core/connections.c
@@ -1270,6 +1270,7 @@ static void qdr_link_inbound_first_attach_CT(qdr_core_t *core, qdr_action_t *act
     // Reject any attaches of inter-router links that arrive on connections that are not inter-router.
     //
     if (((link->link_type == QD_LINK_CONTROL || link->link_type == QD_LINK_ROUTER) && conn->role != QDR_ROLE_INTER_ROUTER)) {
+        link->link_type = QD_LINK_ENDPOINT;
         qdr_link_outbound_detach_CT(core, link, 0, QDR_CONDITION_FORBIDDEN, true);
         qdr_terminus_free(source);
         qdr_terminus_free(target);


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