You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2016/06/10 17:22:50 UTC

qpid-proton git commit: PROTON-1235: set hostname even if port not available

Repository: qpid-proton
Updated Branches:
  refs/heads/master 622dc1f7b -> 7bc06c96d


PROTON-1235: set hostname even if port not available


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

Branch: refs/heads/master
Commit: 7bc06c96d6364238b128559e4f3c23c649d26789
Parents: 622dc1f
Author: Ken Giusti <kg...@apache.org>
Authored: Fri Jun 10 12:37:53 2016 -0400
Committer: Ken Giusti <kg...@apache.org>
Committed: Fri Jun 10 12:37:53 2016 -0400

----------------------------------------------------------------------
 proton-c/src/reactor/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/7bc06c96/proton-c/src/reactor/connection.c
----------------------------------------------------------------------
diff --git a/proton-c/src/reactor/connection.c b/proton-c/src/reactor/connection.c
index a3e7367..422a072 100644
--- a/proton-c/src/reactor/connection.c
+++ b/proton-c/src/reactor/connection.c
@@ -170,9 +170,9 @@ void pni_handle_bound(pn_reactor_t *reactor, pn_event_t *event) {
           char *colon = strrchr(h, ':');
           if (colon) {
               *colon = '\0';
-              host = h;
               port = colon + 1;
           }
+          host = h;
       }
   }
 


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