[exim-dev] [Bug 448] New: dovecot authenticator segmentation…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: bug448
Date:  
À: exim-dev
Sujet: [exim-dev] [Bug 448] New: dovecot authenticator segmentation fault in -bh mode
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

http://www.exim.org/bugzilla/show_bug.cgi?id=448

           Summary: dovecot authenticator segmentation fault in -bh mode
           Product: Exim
           Version: Any
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: SMTP Authentication
        AssignedTo: ph10@???
        ReportedBy: nigel@???
         QAContact: exim-dev@???



Reported by w@???

I've discovered a non-critical, yet annoying bug in dovecot
authenticator code. When I launch exim in the -bh (fake SMTP session)
mode and launch an AUTH command with dovecot authenticator configured
with it, exim goes SIGSEGV:

AUTH PLAIN whatever
SMTP<< AUTH PLAIN whatever
dovecot authentication
received: MECH  PLAIN   plaintext
received: MECH  LOGIN   plaintext
received: VERSION       1       0
received: SPID  74453
received: CUID  6
received: DONE
zsh: segmentation fault (core dumped)  exim -bh 1.1.1.1 -d


After a bit of debugging I've found that deliver.c uses the
interface_address variable to determine if the connection is secured,
however in the -bh mode the variable is NULL. Thus, this simple patch
(attached) fixes the thing.

-- 
  Jan Srzednicki  ::  http://wrzask.pl/
  "Remember, remember, the fifth of November"
                                     -- V for Vendetta


--
Configure bugmail: http://www.exim.org/bugzilla/userprefs.cgi?tab=email