summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-08-22 16:36:27 +0200
committerKarolin Seeger <kseeger@samba.org>2013-08-30 10:22:42 +0200
commitae20e2d0918fd321f0bd9cfe88d5f15ab6e585b0 (patch)
treea6779161f92fee79df36a3e4c83aa0aa26912932
parentac4066031fcc6faf44b64938a49c6cce9cb1294f (diff)
downloadsamba-ae20e2d0918fd321f0bd9cfe88d5f15ab6e585b0.tar.gz
s3-winbindd: Fix winbind on DC crash with trusted AD domains.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/winbindd/winbindd_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c
index 924bc83525..d6eb4b4186 100644
--- a/source3/winbindd/winbindd_ads.c
+++ b/source3/winbindd/winbindd_ads.c
@@ -193,7 +193,7 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain)
NULL ) ) {
return NULL;
}
- realm = NULL;
+ realm = SMB_STRDUP(domain->alt_name);
}
else {
struct winbindd_domain *our_domain = domain;