diff --git a/src/network/connection.c b/src/network/connection.c index 0c4c491..c48cc19 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -161,7 +161,7 @@ ssize_t net_con_send(struct net_connection* con, const void* buf, size_t len) LOG_PROTO("SSL_write(con=%p, buf=%p, len=" PRINTF_SIZE_T ") => %d", con, buf, len, ret); if (ret <= 0) { - return -handle_openssl_error(con, ret); + return handle_openssl_error(con, ret); } } #endif @@ -201,7 +201,7 @@ ssize_t net_con_recv(struct net_connection* con, void* buf, size_t len) } else { - return -handle_openssl_error(con, ret); + return handle_openssl_error(con, ret); } } #endif