[SCM] Samba Shared Repository - branch master updated - e3ef19b9b9ae76c059ddff58324102c7de210f6d

Jeremy Allison jra at samba.org
Wed Jan 14 19:48:54 GMT 2009


The branch, master has been updated
       via  e3ef19b9b9ae76c059ddff58324102c7de210f6d (commit)
      from  9aa385a090e5202063747aecd7f9d43eb62f9671 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e3ef19b9b9ae76c059ddff58324102c7de210f6d
Author: Bo Yang <boyang at novell.com>
Date:   Wed Jan 14 11:47:45 2009 -0800

    Fix bug in get_dc_name_via_netlogon(), null pointer refrence.

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

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


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 962b6e6..ab1218c 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -627,7 +627,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