Thu Feb 12 14:56:11 CST 2009 Pekka Pessi <first.last@nokia.com>

* tport_type_tls.c: fixed error logging in tport_tls_connect()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11958 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-12 21:23:05 +00:00
parent ad9bf329cb
commit 459bad1563
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
Thu Feb 12 15:21:20 CST 2009
Thu Feb 12 15:22:56 CST 2009

View File

@ -602,6 +602,7 @@ tport_t *tport_tls_connect(tport_primary_t *pri,
char buf[TPORT_HOSTPORTSIZE];
char const *what="";
what = "su_socket";
s = su_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (s == INVALID_SOCKET)
goto sys_error;
@ -628,15 +629,19 @@ tport_t *tport_tls_connect(tport_primary_t *pri,
}
}
what = "connect";
if (connect(s, ai->ai_addr, (socklen_t)(ai->ai_addrlen)) == SOCKET_ERROR) {
err = su_errno();
if (!su_is_blocking(err))
goto sys_error;
}
what = "tport_setname";
if (tport_setname(self, tpn->tpn_proto, ai, tpn->tpn_canon) == -1)
goto sys_error;
else if (tport_register_secondary(self, tls_connect, events) == -1)
what = "tport_register_secondary";
if (tport_register_secondary(self, tls_connect, events) == -1)
goto sys_error;
SU_DEBUG_5(("%s(%p): connecting to " TPN_FORMAT "\n",