]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Spaces instead of tabs in that log message.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Feb 2019 12:32:42 +0000 (12:32 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Feb 2019 12:32:42 +0000 (12:32 +0000)
git-svn-id: file:///svn/unbound/trunk@5116 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/cache/infra.c

index 041c10516aabbb8b0435f7a858b424872fb00f50..78af63b845b33478305da164cf3bcc2c7ee46599 100644 (file)
@@ -1,5 +1,6 @@
 18 February 2019: Wouter
        - Print query name with ip_ratelimit exceeded log lines.
+       - Spaces instead of tabs in that log message.
 
 14 February 2019: Wouter
        - Fix capsforid canonical sort qsort callback.
index fa127e918d4e5d19dc39863879fc267025c888c3..5ced2d5bbccb6b4af33674eb1e7c34a21efbc539 100644 (file)
@@ -1024,6 +1024,10 @@ int infra_ip_ratelimit_inc(struct infra_cache* infra,
                                        qnm, sizeof(qnm));
                                if(strlen(qnm)>0 && qnm[strlen(qnm)-1]=='\n')
                                        qnm[strlen(qnm)-1] = 0; /*remove newline*/
+                               if(strchr(qnm, '\t'))
+                                       *strchr(qnm, '\t') = ' ';
+                               if(strchr(qnm, '\t'))
+                                       *strchr(qnm, '\t') = ' ';
                                verbose(VERB_OPS, "ip_ratelimit exceeded %s %d %s",
                                        client_ip, infra_ip_ratelimit, qnm);
                        } else {