Repository: qpid-proton Updated Branches: refs/heads/0.11.x e2ca91169 -> 88f5129f7
PROTON-1042: Ensure terminus type is correct for a target even if the address is null (cherry picked from commit 1b1b2e596a974ec4fedf1ca3d985f0d62a730b61) Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/88f5129f Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/88f5129f Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/88f5129f Branch: refs/heads/0.11.x Commit: 88f5129f7fdbeb2cddaa35e8c72cdabc96573040 Parents: e2ca911 Author: Gordon Sim <[email protected]> Authored: Mon Nov 9 17:10:39 2015 +0000 Committer: Robert Gemmell <[email protected]> Committed: Tue Nov 10 13:43:12 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/88f5129f/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]
