Add comment explaining the previous fix.
authorJeremy Allison <jra@samba.org>
Wed, 22 Apr 2009 10:03:04 +0000 (03:03 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 22 Apr 2009 10:03:04 +0000 (03:03 -0700)
Jeremy.

source3/libads/ldap.c

index 74f9b94a12c5db7d3c16c13eb185702fed8e80af..cc72d81b86c16ae40e39ad929132125ed9b49004 100644 (file)
@@ -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;
        }