git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b32b0d5
)
Add comment explaining the previous fix.
author
Jeremy Allison
<jra@samba.org>
Wed, 22 Apr 2009 10:04:22 +0000
(
03:04
-0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 22 Apr 2009 10:04:22 +0000
(
03:04
-0700)
Jeremy.
source/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source/libads/ldap.c
b/source/libads/ldap.c
index 27aef312ba1ede576858141d75e513d608befaec..d9598e5dd8308ce4edca71027fd33bf7447c5576 100644
(file)
--- 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;
}