mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
Fix _dssetup_DsRoleGetPrimaryDomainInformation().
Guenther (This used to be commit 5eb7b7a9db4bda40660df5ab67bfea99e75716f9)
This commit is contained in:
parent
266af5887e
commit
ffd88c35db
@ -35,7 +35,7 @@ static WERROR fill_dsrole_dominfo_basic(TALLOC_CTX *ctx,
|
||||
struct dssetup_DsRolePrimaryDomInfoBasic **info)
|
||||
{
|
||||
struct dssetup_DsRolePrimaryDomInfoBasic *basic = NULL;
|
||||
fstring dnsdomain;
|
||||
char *dnsdomain = NULL;
|
||||
|
||||
DEBUG(10,("fill_dsrole_dominfo_basic: enter\n"));
|
||||
|
||||
@ -71,7 +71,10 @@ static WERROR fill_dsrole_dominfo_basic(TALLOC_CTX *ctx,
|
||||
/* fill in some additional fields if we are a member of an AD domain */
|
||||
|
||||
if (lp_security() == SEC_ADS) {
|
||||
fstrcpy(dnsdomain, lp_realm());
|
||||
dnsdomain = talloc_strdup(ctx, lp_realm());
|
||||
if (!dnsdomain) {
|
||||
return WERR_NOMEM;
|
||||
}
|
||||
strlower_m(dnsdomain);
|
||||
basic->dns_domain = dnsdomain;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user