Thu Feb 12 07:17:31 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>

* tport.c: return correct errno from tport_listen()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11944 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-12 21:10:11 +00:00
parent 8ff2eefcea
commit b5ef501d09
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
Thu Feb 12 15:09:20 CST 2009
Thu Feb 12 15:10:02 CST 2009

View File

@ -731,7 +731,7 @@ tport_primary_t *tport_listen(tport_master_t *mr,
/* Create a primary transport object for another transport. */
pri = tport_alloc_primary(mr, vtable, tpn, ai, tags, &culprit);
if (pri == NULL)
return TPORT_LISTEN_ERROR(errno, culprit);
return TPORT_LISTEN_ERROR(su_errno(), culprit);
if (pri->pri_primary->tp_socket != INVALID_SOCKET) {
int index = 0;