diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-08 13:20:20 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-08 13:20:20 +0100 |
commit | 1073de4a6139cf1b78ed82bc93e26be385cb76b1 (patch) | |
tree | ec5cc24f697a820a8eb2a51702c940ff64f27a9e /lib/conn.c | |
parent | 962869fcd2decd993171aa82c00b9e0b3517f995 (diff) |
Don't return -1 to user but rather an error code.
NOTE: Changes rs_conn_receive_packet() and rs_packet_send() only.
Diffstat (limited to 'lib/conn.c')
-rw-r--r-- | lib/conn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |