Skip to content

Commit

Permalink
lmtp: Fix segfault occurring when a user turns out to be over quota a…
Browse files Browse the repository at this point in the history
…t DATA transfer.

The LMTP recipient context was not updated with the final recipient address when
the RCPT command was accepted. This left a dangling struct smtp_address pointer
which triggered the segfault when used.
  • Loading branch information
stephanbosch committed May 14, 2018
1 parent 33f2a36 commit 847790d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lmtp/lmtp-common.c
Expand Up @@ -22,6 +22,7 @@ void lmtp_recipient_finish(struct lmtp_recipient *rcpt,
{
trcpt->context = rcpt;

rcpt->path = trcpt->path;
rcpt->rcpt = trcpt;
rcpt->index = index;
rcpt->rcpt_cmd = NULL;
Expand Down

0 comments on commit 847790d

Please sign in to comment.