From 1689a0d56b368816cca6c6c6d82601414d6c36a3 Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Tue, 5 Jan 2021 12:35:28 +0900 Subject: [PATCH] Update mongoose.c. --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index a0ac0699..34eba8fb 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3506,7 +3506,7 @@ fail: int mg_tls_handshake(struct mg_connection *c) { struct mg_tls *tls = (struct mg_tls *) c->tls; int rc; - SSL_set_fd(tls->ssl, (int) c->fd); + SSL_set_fd(tls->ssl, (ssize_t) c->fd); rc = c->is_client ? SSL_connect(tls->ssl) : SSL_accept(tls->ssl); if (rc == 1) { LOG(LL_DEBUG, ("%lu success", c->id));