X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6856c7b4d64f6afc00249128fc952c575d8c84bf..aba4adb7dcf202246b2663e34b18c9968003509c:/src/networking.c diff --git a/src/networking.c b/src/networking.c index 7ed5c6fc..862e69f4 100644 --- a/src/networking.c +++ b/src/networking.c @@ -412,7 +412,7 @@ static void acceptCommonHandler(int fd) { * connection. Note that we create the client instead to check before * for this condition, since now the socket is already set in nonblocking * mode and we can send an error for free using the Kernel I/O */ - if (server.maxclients && listLength(server.clients) > server.maxclients) { + if (listLength(server.clients) > server.maxclients) { char *err = "-ERR max number of clients reached\r\n"; /* That's a best effort error message, don't check write errors */