diff options
-rw-r--r-- | lib/conn.c | 2 | ||||
-rw-r--r-- | lib/send.c | 5 |
2 files changed, 5 insertions, 2 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) @@ -128,7 +128,10 @@ rs_packet_send (struct rs_packet *pkt, void *user_data) conn->user_data = NULL; if ((pkt->flags & rs_packet_sent_flag) == 0) - return -1; + { + assert (rs_err_conn_peek_code (conn)); + return rs_err_conn_peek_code (conn); + } } return RSE_OK; |