A minor fix for check_against_...

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-01-13 15:22:27 +00:00
parent dd17184430
commit 77eaf64050
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ struct parser_state parse_message(struct session_data *sdata, int take_into_piec
fclose(f);
if(data->import->extra_recipient){
if(data->import && data->import->extra_recipient){
add_recipient(data->import->extra_recipient, strlen(data->import->extra_recipient), sdata, &state, data, cfg);
}

View File

@ -118,7 +118,7 @@ static void test_archiving_rule(struct config *cfg){
state = parse_message(&sdata, 1, &data, cfg);
post_parse(&sdata, &state, cfg);
rule = check_againt_ruleset(data.archiving_rules, &state, st.st_size, sdata.spam_message);
rule = check_against_ruleset(data.archiving_rules, &state, st.st_size, sdata.spam_message);
for(j=1; j<=state.n_attachments; j++){