diff options
author | Bo Yang <boyang@novell.com> | 2009-01-14 11:47:45 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-01-14 11:47:45 -0800 |
commit | e3ef19b9b9ae76c059ddff58324102c7de210f6d (patch) | |
tree | c7f5399fb4a4467aeb307883d0f75d320476d520 | |
parent | 9aa385a090e5202063747aecd7f9d43eb62f9671 (diff) | |
download | samba-e3ef19b9b9ae76c059ddff58324102c7de210f6d.tar.gz samba-e3ef19b9b9ae76c059ddff58324102c7de210f6d.tar.bz2 samba-e3ef19b9b9ae76c059ddff58324102c7de210f6d.zip |
Fix bug in get_dc_name_via_netlogon(), null pointer refrence.
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 962b6e6d1b..ab1218c560 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) { |