[exim-dev] [Bug 2251] Segfault when LDAP lookup does not ret…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2251] Segfault when LDAP lookup does not return a result
https://bugs.exim.org/show_bug.cgi?id=2251

--- Comment #14 from Matthew Slowe <M.Slowe@???> ---
(In reply to Jeremy Harris from comment #13)
> I guess it depends whether people think my initial take on the return value
> is correct or not. The LDAP library seems to be returning one attribute,
> with a zero-length value. I don't know enough about LDAP to say, but I'd
> guess that takes different content of the LDAP database compared to something
> that would result in no attributes returned.
>
> The Exim interface to the LDAP library used to treat this zero-length
> value, of an attribute that was returned, as a lookup failure.
> Now it returns a zero-length string.


It does appear that we're erroneously setting a null value in LDAP (which I
didn't realise was even possible) and I will look at fixing that at some point.

Is there a simple way in the expansion syntax to catch this and fail anyway in
the mean time?

--
You are receiving this mail because:
You are on the CC list for the bug.