diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-09-06 16:01:53 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-09-06 16:01:53 +0000 |
commit | 9d25d25ed3eae4a58cdfca4ed80dcee30468f843 (patch) | |
tree | ee703a6099147f52aa0bc5e3341682398fbd5bf0 /src/microhttpd/daemon.c | |
parent | 9e87c9a225ddcb3092fd3cd9ec428801edac69b4 (diff) | |
download | libmicrohttpd-9d25d25ed3eae4a58cdfca4ed80dcee30468f843.tar.gz libmicrohttpd-9d25d25ed3eae4a58cdfca4ed80dcee30468f843.zip |
daemon.c: MHD_ip_limit_add(): small clarification
Diffstat (limited to 'src/microhttpd/daemon.c')
-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 | ||