tport.c: return correct errno from tport_listen()

Ignore-this: 5d96f6f5d776bf8fb49e221b2f65ca60

darcs-hash:20090212131731-c21f9-3b06d3024bb39835575d29b710dcc9176b1dae3e.gz
parent ff560ac8
...@@ -731,7 +731,7 @@ tport_primary_t *tport_listen(tport_master_t *mr, ...@@ -731,7 +731,7 @@ tport_primary_t *tport_listen(tport_master_t *mr,
/* Create a primary transport object for another transport. */ /* Create a primary transport object for another transport. */
pri = tport_alloc_primary(mr, vtable, tpn, ai, tags, &culprit); pri = tport_alloc_primary(mr, vtable, tpn, ai, tags, &culprit);
if (pri == NULL) if (pri == NULL)
return TPORT_LISTEN_ERROR(errno, culprit); return TPORT_LISTEN_ERROR(su_errno(), culprit);
if (pri->pri_primary->tp_socket != INVALID_SOCKET) { if (pri->pri_primary->tp_socket != INVALID_SOCKET) {
int index = 0; int index = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment