mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-06 18:07:41 +02:00
sharper match.
git-svn-id: file:///svn/unbound/trunk@1835 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+3
-3
@@ -81,13 +81,13 @@ match(char* line)
|
||||
* [1187340064] unbound[24604:0] info: ul/rb.c:81 r_create malloc(12)
|
||||
* 0123456789 123456789 123456789 123456789
|
||||
* But now also:
|
||||
* Sep 16 15:18:20 unbound[17428:0] info: ul/nh.c:143 memdup malloc(11)
|
||||
* Sep 16 15:18:20 unbound[1:0] info: ul/nh.c:143 memdup malloc(11)
|
||||
*/
|
||||
if(strlen(line) < 32) /* up to 'info: ' */
|
||||
return 0;
|
||||
if(!strstr(line, "] info: "))
|
||||
if(!strstr(line, " info: "))
|
||||
return 0;
|
||||
if(strstr(line, "info: stat"))
|
||||
if(strstr(line, "info: stat "))
|
||||
return 0; /* skip the hex dumps */
|
||||
if(strstr(line+30, "malloc("))
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user