summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <boyang@novell.com>2009-01-14 11:48:16 -0800
committerKarolin Seeger <kseeger@samba.org>2009-01-20 14:16:46 +0100
commitca87519ad47a1347ec2e1283e1af65eefe127dec (patch)
treec096865335040b7c499ca5b42c8d6bc9adf3130f
parentffd5792c4e51058ff797a94200dcc63963a597dd (diff)
downloadsamba-ca87519ad47a1347ec2e1283e1af65eefe127dec.tar.gz
Fix bug in get_dc_name_via_netlogon(), null pointer refrence.
(cherry picked from commit 43d6aabfa58cda95f362e86c324c7f2ae21aec53)
-rw-r--r--source/winbindd/winbindd_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c
index 0102f4ff06a..ddd98c355eb 100644
--- a/source/winbindd/winbindd_cm.c
+++ b/source/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) {