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 <[email protected]>
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

Reply via email to