Skip to content

MMA-11008. fix extended auth patch#81

Draft
bitsikas wants to merge 1 commit into
exim-4.98.2+fixes+se+encrfrom
MMA-11008
Draft

MMA-11008. fix extended auth patch#81
bitsikas wants to merge 1 commit into
exim-4.98.2+fixes+se+encrfrom
MMA-11008

Conversation

@bitsikas

@bitsikas bitsikas commented Jun 10, 2026

Copy link
Copy Markdown

Why we need this

On rejected authentication attempts we don't always fill out the smtp_resp/errmsg before exiting causing segfaults.

Ticket

MMA-11008

How we fix this.

Reapply the changes from the previous patches #46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to prevent crashes during rejected SMTP AUTH attempts by ensuring smtp_resp/errmsg are populated on all exit paths in smtp_in_auth() (reapplying behavior from prior patch work).

Changes:

  • Populate smtp_resp/errmsg (and authenticated_fail_id) in additional AUTH failure paths to avoid NULL/uninitialized dereferences.
  • Reorder when acl_smtp_auth_accept is evaluated relative to setting the success response/state.
  • Move FAIL-path response initialization earlier (before acl_smtp_auth_fail) to ensure response strings are always set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/src/smtp_in.c
Comment thread src/src/smtp_in.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants