bugfix for headers matching
authorHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Tue, 15 May 2001 11:13:35 +0000 (11:13 +0000)
committerHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Tue, 15 May 2001 11:13:35 +0000 (11:13 +0000)
src/matcher.c

index 2743fdc..afc0b1f 100644 (file)
@@ -694,6 +694,8 @@ static gboolean matcherprop_match_one_header(MatcherProp * matcher,
        case MATCHING_HEADER:
        case MATCHING_NOT_HEADER:
                header = procheader_parse_header(buf);
+               if (!header)
+                       return FALSE;
                if (procheader_headername_equal(header->name,
                                                matcher->header)) {
                        if (matcher->criteria == MATCHING_HEADER)