[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-804-g9ebc15b

Jeremy Allison jra at samba.org
Wed Apr 22 09:54:54 GMT 2009


The branch, v3-4-test has been updated
       via  9ebc15bed8c05d0729066d97d3bfaade9fcbacb7 (commit)
      from  b0c4be0e2b856326e5790f4aef54e6b792f8f089 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit 9ebc15bed8c05d0729066d97d3bfaade9fcbacb7
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Apr 22 02:54:11 2009 -0700

    Fix bug #6279 - winbindd crash. Cope with LDAP libraries returning LDAP_SUCCESS but not returning a result.
    Jeremy

-----------------------------------------------------------------------

Summary of changes:
 source3/libads/ldap.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 841ea8c..d35a499 100644
--- 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;
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list