]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Thu Feb 12 14:56:11 CST 2009 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Thu, 12 Feb 2009 21:23:05 +0000 (21:23 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 12 Feb 2009 21:23:05 +0000 (21:23 +0000)
  * 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

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tls.c

index d47b299081169e486b00e28083d458bc2489547c..ff63bc5665d2b06c271973bb606ea02c1e6a46d6 100644 (file)
@@ -1 +1 @@
-Thu Feb 12 15:21:20 CST 2009
+Thu Feb 12 15:22:56 CST 2009
index 7bd96f40816d61c8c534fde1d804436eed91d011..4dc84ba3f9500d42f2c80897d7eb2b95e187f4f6 100644 (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",