From: Jeremy Allison Date: Wed, 22 Apr 2009 10:04:22 +0000 (-0700) Subject: Add comment explaining the previous fix. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2e0cb32c1a6f68430b36288c5d704b46d072e79;p=thirdparty%2Fsamba.git Add comment explaining the previous fix. Jeremy. --- diff --git a/source/libads/ldap.c b/source/libads/ldap.c index 27aef312ba1..d9598e5dd83 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; }