diff --git a/src/tls.c b/src/tls.c index a26ceb7506..f2e8480c6f 100644 --- a/src/tls.c +++ b/src/tls.c @@ -750,13 +750,13 @@ static void tlsAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) UNUSED(privdata); while (max--) { - cfd = anetTcpAccept(server.neterr, fd, cip, sizeof(cip), &cport); + cfd = anetTcpAccept(server.neterr, fd, cip, sizeof(cip), &cport, NULL); if (cfd == ANET_ERR) { if (errno != EWOULDBLOCK) serverLog(LL_WARNING, "Accepting client connection: %s", server.neterr); return; } serverLog(LL_VERBOSE, "Accepted %s:%d", cip, cport); - acceptCommonHandler(connCreateAcceptedTLS(cfd, &server.tls_auth_clients), 0, cip); + acceptCommonHandler(connCreateAcceptedTLS(cfd, &server.tls_auth_clients), 0, cip, NULL); } }