diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-22 03:03:04 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-22 03:03:04 -0700 |
commit | e7466d020722ff6da3e6dc29cf5fa621aa039f7e (patch) | |
tree | 855ff9c92d3732d23a2936267f1d3f2bb7b90356 /source3/libads | |
parent | 265ffe01f2ddc241af968f3e41ceb6f4311464eb (diff) | |
download | samba-e7466d020722ff6da3e6dc29cf5fa621aa039f7e.tar.gz samba-e7466d020722ff6da3e6dc29cf5fa621aa039f7e.tar.bz2 samba-e7466d020722ff6da3e6dc29cf5fa621aa039f7e.zip |
Add comment explaining the previous fix.
Jeremy.
Diffstat (limited to 'source3/libads')
-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 74f9b94a12..cc72d81b86 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; } |