]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Thu Feb 12 07:17:08 CST 2009 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Thu, 12 Feb 2009 21:11:15 +0000 (21:11 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 12 Feb 2009 21:11:15 +0000 (21:11 +0000)
  * tport.c: return correct errno from tport_connect()

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11945 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index d4be3b3a5d3ddbc0abccb484e4447081a301cc23..70f54c2069bba96523bebeef9358c930dfb365db 100644 (file)
@@ -1 +1 @@
-Thu Feb 12 15:10:02 CST 2009
+Thu Feb 12 15:11:04 CST 2009
index 8b4014e767658b023683a2c7ada77c48eeeba6f0..dac6485ef8203e2a210ff019da53d178bd8bbab7 100644 (file)
@@ -985,7 +985,7 @@ tport_t *tport_base_connect(tport_primary_t *pri,
 
   what = "tport_alloc_secondary";
   if ((self = tport_alloc_secondary(pri, s, 0, &what)) == NULL)
-    TPORT_CONNECT_ERROR(errno, what);
+    TPORT_CONNECT_ERROR(su_errno(), what);
 
   self->tp_conn_orient = 1;
 
@@ -3383,7 +3383,7 @@ int tport_prepare_and_send(tport_t *self, msg_t *msg,
 
   /* Prepare message for sending - i.e., encode it */
   if (msg_prepare(msg) < 0) {
-    msg_set_errno(msg, errno);
+    msg_set_errno(msg, errno); /* msg parser uses plain errno. Hmph. */
     return -1;
   }