Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib-smtp: server: Fix double decrement of RCPT pending counter upon e…
…rror. The pending counter was sometimes decremented twice in specific error conditions, leading to an assert panic in the DATA command. This was caused by some dead code. If the MAIL command failed in a pipeline before the RCPT command, the assert was triggered. Panic was: Panic: file smtp-server-cmd-data.c: line 354 (cmd_data_start): assertion failed: (conn->state.pending_mail_cmds == 0 && conn->state.pending_rcpt_cmds == 0)
- Loading branch information