From 9da82269dc6d9da3c0393a85e0217bf22cd2fe5c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 22 Apr 2009 03:04:22 -0700 Subject: [PATCH] Add comment explaining the previous fix. Jeremy. --- source/libads/ldap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/libads/ldap.c b/source/libads/ldap.c index 8c37bfb69e0..d8a117888ea 100644 --- a/source/libads/ldap.c +++ b/source/libads/ldap.c @@ -118,6 +118,12 @@ static int ldap_search_with_timeout(LDAP *ld, if (gotalarm != 0) return LDAP_TIMELIMIT_EXCEEDED; + /* + * A bug in OpenLDAP means ldap_search_ext_s can return + * LDAP_SUCCESS but with a NULL res pointer. Cope with + * this. See bug #6279 for details. JRA. + */ + if (*res == NULL) { return LDAP_TIMELIMIT_EXCEEDED; } -- 2.11.4.GIT