Xorriso_sieve_clear_results() dereferenced NULL if message sieve never started

This commit is contained in:
Thomas Schmitt 2012-12-25 18:09:37 +00:00
parent 88b4584ab2
commit 5e6a20e5b0
2 changed files with 3 additions and 1 deletions

View File

@ -1589,6 +1589,8 @@ int Xorriso_sieve_clear_results(struct XorrisO *xorriso, int flag)
{
struct Xorriso_msg_filteR *f;
if(xorriso->msg_sieve == NULL)
return(1);
for(f= xorriso->msg_sieve->first_filter; f != NULL; f= f->next) {
f->num_results= 0;
f->num_delivered= 0;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.12.25.175536"
#define Xorriso_timestamP "2012.12.25.180844"