bugfix for headers matching

This commit is contained in:
Hoà Viêt Dinh 2001-05-15 11:13:35 +00:00
parent 8c8d18447d
commit 43ecb85aa3

View file

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