summaryrefslogtreecommitdiff
path: root/source3/rpc_server/dssetup
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server/dssetup')
-rw-r--r--source3/rpc_server/dssetup/srv_dssetup_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/dssetup/srv_dssetup_nt.c b/source3/rpc_server/dssetup/srv_dssetup_nt.c
index fef2dbd7e0..1a3998b8be 100644
--- a/source3/rpc_server/dssetup/srv_dssetup_nt.c
+++ b/source3/rpc_server/dssetup/srv_dssetup_nt.c
@@ -78,7 +78,9 @@ static WERROR fill_dsrole_dominfo_basic(TALLOC_CTX *ctx,
if (!dnsdomain) {
return WERR_NOMEM;
}
- strlower_m(dnsdomain);
+ if (!strlower_m(dnsdomain)) {
+ return WERR_INVALID_PARAM;
+ }
basic->dns_domain = dnsdomain;
/* FIXME!! We really should fill in the correct forest