Commit 215bad34 authored by Pekka Pessi's avatar Pekka Pessi

tport.c: return correct errno from tport_connect()

Ignore-this: 862cf3e8ef5c17e9ac955dcdba317f1f

darcs-hash:20090212131708-db55f-98e310c1be511851b709363d9a7081431e99103c.gz
parent 68ab467a
......@@ -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;
}
......
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