diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-06-10 21:45:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-06-10 21:45:34 +0200 |
commit | 34aa038d97938cf24b157892bcab6fec173918c8 (patch) | |
tree | 27e0dc98bfa82e59d30616e29b11e09b8f1384ed /src/lib/daemon_ip_limit.c | |
parent | a019057377ee1b67d49264d1029ac615089b2422 (diff) | |
parent | f84bdf0a8c4c11d956f63bc6378aaa7fa9bb95aa (diff) | |
download | libmicrohttpd-34aa038d97938cf24b157892bcab6fec173918c8.tar.gz libmicrohttpd-34aa038d97938cf24b157892bcab6fec173918c8.zip |
Merge branch 'master' of git+ssh://gnunet.org/libmicrohttpd
Diffstat (limited to 'src/lib/daemon_ip_limit.c')
-rw-r--r-- | src/lib/daemon_ip_limit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/daemon_ip_limit.c b/src/lib/daemon_ip_limit.c index 4b33e029..e06867ca 100644 --- a/src/lib/daemon_ip_limit.c +++ b/src/lib/daemon_ip_limit.c | |||
@@ -221,7 +221,7 @@ MHD_ip_limit_add (struct MHD_Daemon *daemon, | |||
221 | #ifdef HAVE_MESSAGES | 221 | #ifdef HAVE_MESSAGES |
222 | MHD_DLOG (daemon, | 222 | MHD_DLOG (daemon, |
223 | MHD_SC_IP_COUNTER_FAILURE, | 223 | MHD_SC_IP_COUNTER_FAILURE, |
224 | _ ("Failed to add IP connection count node\n")); | 224 | _ ("Failed to add IP connection count node.\n")); |
225 | #endif | 225 | #endif |
226 | MHD_ip_count_unlock (daemon); | 226 | MHD_ip_count_unlock (daemon); |
227 | free (key); | 227 | free (key); |
@@ -279,13 +279,13 @@ MHD_ip_limit_del (struct MHD_Daemon *daemon, | |||
279 | { | 279 | { |
280 | /* Something's wrong if we couldn't find an IP address | 280 | /* Something's wrong if we couldn't find an IP address |
281 | * that was previously added */ | 281 | * that was previously added */ |
282 | MHD_PANIC (_ ("Failed to find previously-added IP address\n")); | 282 | MHD_PANIC (_ ("Failed to find previously-added IP address.\n")); |
283 | } | 283 | } |
284 | found_key = (struct MHD_IPCount *) *nodep; | 284 | found_key = (struct MHD_IPCount *) *nodep; |
285 | /* Validate existing count for IP address */ | 285 | /* Validate existing count for IP address */ |
286 | if (0 == found_key->count) | 286 | if (0 == found_key->count) |
287 | { | 287 | { |
288 | MHD_PANIC (_ ("Previously-added IP address had counter of zero\n")); | 288 | MHD_PANIC (_ ("Previously-added IP address had counter of zero.\n")); |
289 | } | 289 | } |
290 | /* Remove the node entirely if count reduces to 0 */ | 290 | /* Remove the node entirely if count reduces to 0 */ |
291 | if (0 == --found_key->count) | 291 | if (0 == --found_key->count) |