sharper match.

git-svn-id: file:///svn/unbound/trunk@1835 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2009-09-16 13:13:46 +00:00
parent 90b4b1dae9
commit aae91da6d2
+3 -3
View File
@@ -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;