(sieve_machine_init): Fixed inconsistent return value.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment