mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-01 04:03:18 +03:00
daemon.c: MHD_ip_limit_add(): small clarification
This commit is contained in:
1 parent
9e87c9a225
commit
9d25d25ed3
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user