summaryrefslogtreecommitdiff
path: root/lib/conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/conn.c')
-rw-r--r--lib/conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/conn.c b/lib/conn.c
index 028302c..feed856 100644
--- a/lib/conn.c
+++ b/lib/conn.c
@@ -305,7 +305,7 @@ rs_conn_receive_packet (struct rs_connection *conn,
&& packet_verify_response (pkt->conn, pkt, req_msg) != RSE_OK))
{
assert (rs_err_conn_peek_code (pkt->conn));
- return -1;
+ return rs_err_conn_peek_code (conn);
}
if (pkt_out)