Thu Feb 12 07:17:08 CST 2009 Pekka Pessi <first.last@nokia.com>
* tport.c: return correct errno from tport_connect() git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11945 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b5ef501d09
commit
cbb7805d53
|
@ -1 +1 @@
|
|||
Thu Feb 12 15:10:02 CST 2009
|
||||
Thu Feb 12 15:11:04 CST 2009
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue