git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3efd9d
)
Fix bug #6279 - winbindd crash. Cope with LDAP libraries returning LDAP_SUCCESS but...
author
Jeremy Allison
<jra@samba.org>
Wed, 22 Apr 2009 09:54:11 +0000
(
02:54
-0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 22 Apr 2009 09:58:24 +0000
(
02:58
-0700)
Jeremy
source3/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source3/libads/ldap.c
b/source3/libads/ldap.c
index 9ffbd57e4a1e2428ce4586c1f86cc80ce24648ae..74f9b94a12c5db7d3c16c13eb185702fed8e80af 100644
(file)
--- a/
source3/libads/ldap.c
+++ b/
source3/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;
}