From 9d25d25ed3eae4a58cdfca4ed80dcee30468f843 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sun, 6 Sep 2015 16:01:53 +0000 Subject: [PATCH] daemon.c: MHD_ip_limit_add(): small clarification --- src/microhttpd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 40ce74b3..06520674 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -351,7 +351,7 @@ MHD_ip_limit_add (struct MHD_Daemon *daemon, key = (struct MHD_IPCount *) node; /* Test if there is room for another connection; if so, * increment count */ - result = (key->count < daemon->per_ip_connection_limit); + result = (key->count < daemon->per_ip_connection_limit) ? MHD_YES : MHD_NO; if (MHD_YES == result) ++key->count;