You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2015/11/09 21:18:44 UTC

qpid-proton git commit: PROTON-1042: Ensure terminus type is correct for a target even if the address is null

Repository: qpid-proton
Updated Branches:
  refs/heads/master a8c947399 -> 1b1b2e596


PROTON-1042: Ensure terminus type is correct for a target even if the address is null


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

Branch: refs/heads/master
Commit: 1b1b2e596a974ec4fedf1ca3d985f0d62a730b61
Parents: a8c9473
Author: Gordon Sim <gs...@redhat.com>
Authored: Mon Nov 9 17:10:39 2015 +0000
Committer: Gordon Sim <gs...@redhat.com>
Committed: Mon Nov 9 17:10:39 2015 +0000

----------------------------------------------------------------------
 proton-c/src/transport/transport.c | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1b1b2e59/proton-c/src/transport/transport.c
----------------------------------------------------------------------
diff --git a/proton-c/src/transport/transport.c b/proton-c/src/transport/transport.c
index e05aeae..052e8b9 100644
--- a/proton-c/src/transport/transport.c
+++ b/proton-c/src/transport/transport.c
@@ -1356,6 +1356,8 @@ int pn_do_attach(pn_transport_t *transport, uint8_t frame_type, uint16_t channel
     if (err) return err;
     if (code == COORDINATOR) {
       pn_terminus_set_type(rtgt, PN_COORDINATOR);
+    } else if (code == TARGET) {
+      pn_terminus_set_type(rtgt, PN_TARGET);
     } else {
       pn_terminus_set_type(rtgt, PN_UNSPECIFIED);
     }


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