Commit c51eabe5 c51eabe502d7f1bb6f017dde2a4a0441298e3885 by Sergey Poznyakoff

(sieve_machine_init): Fixed inconsistent return value.

1 parent 00ec258e
...@@ -351,7 +351,7 @@ sieve_machine_init (sieve_machine_t *pmach, void *data) ...@@ -351,7 +351,7 @@ sieve_machine_init (sieve_machine_t *pmach, void *data)
351 if (rc) 351 if (rc)
352 { 352 {
353 free (mach); 353 free (mach);
354 return 1; 354 return rc;
355 } 355 }
356 356
357 mach->data = data; 357 mach->data = data;
...@@ -469,7 +469,7 @@ sieve_machine_add_destructor (sieve_machine_t mach, sieve_destructor_t destr, ...@@ -469,7 +469,7 @@ sieve_machine_add_destructor (sieve_machine_t mach, sieve_destructor_t destr,
469 return 1; 469 return 1;
470 p->destr = destr; 470 p->destr = destr;
471 p->ptr = ptr; 471 p->ptr = ptr;
472 return list_append (mach->destr_list, p); 472 return list_prepend (mach->destr_list, p);
473 } 473 }
474 474
475 static int 475 static int
......