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
(parent:
b9395cb
)
Fix bug #6279 - winbindd crash. Cope with LDAP libraries returning LDAP_SUCCESS but...
author
Jeremy Allison
<jra@samba.org>
Wed, 22 Apr 2009 09:24:27 +0000
(
02:24
-0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 22 Apr 2009 09:24:27 +0000
(
02:24
-0700)
Jeremy
source/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source/libads/ldap.c
b/source/libads/ldap.c
index 9eae2d4f51395c5e390fe275789d685944fec0c8..8c37bfb69e00ab56c09876a0721eb85e53bbe78f 100644
(file)
--- a/
source/libads/ldap.c
+++ b/
source/libads/ldap.c
@@
-118,6
+118,10
@@
static int ldap_search_with_timeout(LDAP *ld,
if (gotalarm != 0)
return LDAP_TIMELIMIT_EXCEEDED;
+ if (*res == NULL) {
+ return LDAP_TIMELIMIT_EXCEEDED;
+ }
+
return result;
}