[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3359-g25e0358

Jeremy Allison jra at samba.org
Wed Jan 14 19:49:58 GMT 2009


The branch, v3-2-test has been updated
       via  25e035815681136e69b9d49d548b7d7b908011c5 (commit)
      from  e443cfaa25c26a7761113bdde9b7453a97f8e5d5 (commit)

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


- Log -----------------------------------------------------------------
commit 25e035815681136e69b9d49d548b7d7b908011c5
Author: Bo Yang <boyang at novell.com>
Date:   Wed Jan 14 11:49:11 2009 -0800

    Fix bug in get_dc_name_via_netlogon(), null pointer refrence.

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

Summary of changes:
 source/winbindd/winbindd_cm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c
index 4474b5f..a139b32 100644
--- a/source/winbindd/winbindd_cm.c
+++ b/source/winbindd/winbindd_cm.c
@@ -613,7 +613,7 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
 						  DS_RETURN_DNS_NAME,
 						  &domain_info,
 						  &werr);
-		if (W_ERROR_IS_OK(werr)) {
+		if (NT_STATUS_IS_OK(result) && W_ERROR_IS_OK(werr)) {
 			tmp = talloc_strdup(
 				mem_ctx, domain_info->dc_unc);
 			if (tmp == NULL) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list