[Freeswitch-svn] [commit] r11958 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/tport
FreeSWITCH SVN
mikej at freeswitch.org
Thu Feb 12 13:23:05 PST 2009
Author: mikej
Date: Thu Feb 12 15:23:05 2009
New Revision: 11958
Log:
Thu Feb 12 14:56:11 CST 2009 Pekka Pessi <first.last at nokia.com>
* tport_type_tls.c: fixed error logging in tport_tls_connect()
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tls.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Thu Feb 12 15:23:05 2009
@@ -1 +1 @@
-Thu Feb 12 15:21:20 CST 2009
+Thu Feb 12 15:22:56 CST 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tls.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tls.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tls.c Thu Feb 12 15:23:05 2009
@@ -602,6 +602,7 @@
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 @@
}
}
+ 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",
More information about the Freeswitch-svn
mailing list