libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 9d25d25ed3eae4a58cdfca4ed80dcee30468f843
parent 9e87c9a225ddcb3092fd3cd9ec428801edac69b4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun,  6 Sep 2015 16:01:53 +0000

daemon.c: MHD_ip_limit_add(): small clarification

Diffstat:
Msrc/microhttpd/daemon.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;