Skip to content

Commit

Permalink
lmtp_sieve:sieve_imip() skip a buf_reset(&imip->err) call
Browse files Browse the repository at this point in the history
It is executed already at the beginning of the function.
  • Loading branch information
dilyanpalauzov committed Sep 1, 2023
1 parent 7487746 commit bc1f1ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions imap/lmtp_sieve.c
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,6 @@ static int sieve_imip(void *ac, void *ic, void *sc, void *mc,
/* XXX Outlook sends METHOD:REPLY with no ORGANIZER,
but libical doesn't allow them in its restrictions checks */
buf_setcstr(&imip->outcome, "error");
buf_reset(&imip->errstr);
buf_printf(&imip->errstr, "invalid iCalendar data: %s", errstr);
goto done;
}
Expand Down Expand Up @@ -1665,7 +1664,7 @@ static int sieve_imip(void *ac, void *ic, void *sc, void *mc,
sched_data.status ? sched_data.status : "");
break;
case SCHED_DELIVER_NOACTION:
buf_setcstr(&imip->outcome, "no_action");
//imip->outcome is no_action
break;
case SCHED_DELIVER_ADDED:
buf_setcstr(&imip->outcome, "added");
Expand Down

0 comments on commit bc1f1ae

Please sign in to comment.