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 <[email protected]> Authored: Mon Nov 9 17:10:39 2015 +0000 Committer: Gordon Sim <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
