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 <[email protected]>
Authored: Fri Jun 10 12:37:53 2016 -0400
Committer: Ken Giusti <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to