summaryrefslogtreecommitdiff
path: root/lib/packet.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-01 13:51:35 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-01 13:51:35 +0100
commitda2100919c081204ae2fe48e8e3c156bf717d353 (patch)
tree055058f3c4c1ae2d8d842198ce1790c820ae706a /lib/packet.c
parent578e3551a158117399f2d8940c73fb9cb5e3c161 (diff)
Error handling cleanup
Remove RSE_SOME_ERROR. rs_tls_init: Push SSL error stack on libradsec error stack.
Diffstat (limited to 'lib/packet.c')
-rw-r--r--lib/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/packet.c b/lib/packet.c
index f13434b..7b8d1cc 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -401,13 +401,13 @@ _init_socket (struct rs_connection *conn, struct rs_peer *p)
conn->fd = socket (p->addr->ai_family, p->addr->ai_socktype,
p->addr->ai_protocol);
if (conn->fd < 0)
- return rs_err_conn_push_fl (conn, RSE_SOME_ERROR, __FILE__, __LINE__,
+ return rs_err_conn_push_fl (conn, RSE_SOCKERR, __FILE__, __LINE__,
strerror (errno));
if (evutil_make_socket_nonblocking (conn->fd) < 0)
{
evutil_closesocket (conn->fd);
conn->fd = -1;
- return rs_err_conn_push_fl (conn, RSE_SOME_ERROR, __FILE__, __LINE__,
+ return rs_err_conn_push_fl (conn, RSE_SOCKERR, __FILE__, __LINE__,
strerror (errno));
}
return RSE_OK;