tport.c: return correct errno from tport_listen()

Ignore-this: 5d96f6f5d776bf8fb49e221b2f65ca60

parent ff560ac8
......@@ -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;
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