aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/vtls/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index af3c502a7..6b70c0ccc 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -763,7 +763,7 @@ int Curl_ossl_check_cxn(struct connectdata *conn)
recv MSG_PEEK instead. Bug #795 */
#ifdef MSG_PEEK
char buf;
- int nread;
+ ssize_t nread;
nread = recv((RECV_TYPE_ARG1)conn->sock[FIRSTSOCKET], (RECV_TYPE_ARG2)&buf,
(RECV_TYPE_ARG3)1, (RECV_TYPE_ARG4)MSG_PEEK);
if(nread == 0)