diff options
-rw-r--r-- | src/microhttpd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
351 | key = (struct MHD_IPCount *) node; | 351 | key = (struct MHD_IPCount *) node; |
352 | /* Test if there is room for another connection; if so, | 352 | /* Test if there is room for another connection; if so, |
353 | * increment count */ | 353 | * increment count */ |
354 | result = (key->count < daemon->per_ip_connection_limit); | 354 | result = (key->count < daemon->per_ip_connection_limit) ? MHD_YES : MHD_NO; |
355 | if (MHD_YES == result) | 355 | if (MHD_YES == result) |
356 | ++key->count; | 356 | ++key->count; |
357 | 357 | ||