diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-22 03:03:04 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-04-28 09:11:14 +0200 |
commit | 3384209e617a9a4806ae2b984600578930228bae (patch) | |
tree | 1ffc164ac6b0af104852da057a2cf02836bd62b2 | |
parent | 4c716b59adfc68ee36ea12f08cc41cf3be2ec542 (diff) | |
download | samba-3384209e617a9a4806ae2b984600578930228bae.tar.gz |
Add comment explaining the previous fix.
Jeremy.
(cherry picked from commit 0b0bb2c7eb44b403e6fd50cf480ed8b2fb24a7d5)
-rw-r--r-- | source3/libads/ldap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index d35a49936c8..20133445057 100644 --- a/source3/libads/ldap.c +++ b/source3/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; } |