Skip to content

Commit 2332e58

Browse files
committed
session mbedtls BUGFIX missing = in send/recv
67
1 parent 812ee7f commit 2332e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/session_mbedtls.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ nc_server_tls_send(void *ctx, const unsigned char *buf, size_t len)
978978

979979
ret = send(sock, buf, len, MSG_NOSIGNAL);
980980
if (ret < 0) {
981-
if ((errno == EWOULDBLOCK) || (errno = EAGAIN) || (errno == EINTR)) {
981+
if ((errno == EWOULDBLOCK) || (errno == EAGAIN) || (errno == EINTR)) {
982982
return MBEDTLS_ERR_SSL_WANT_WRITE;
983983
} else if ((errno == EPIPE) || (errno == ECONNRESET)) {
984984
return MBEDTLS_ERR_NET_CONN_RESET;
@@ -1009,7 +1009,7 @@ nc_server_tls_recv(void *ctx, unsigned char *buf, size_t len)
10091009

10101010
ret = recv(sock, buf, len, 0);
10111011
if (ret < 0) {
1012-
if ((errno == EWOULDBLOCK) || (errno = EAGAIN) || (errno == EINTR)) {
1012+
if ((errno == EWOULDBLOCK) || (errno == EAGAIN) || (errno == EINTR)) {
10131013
return MBEDTLS_ERR_SSL_WANT_READ;
10141014
} else if ((errno == EPIPE) || (errno == ECONNRESET)) {
10151015
return MBEDTLS_ERR_NET_CONN_RESET;

0 commit comments

Comments
 (0)