summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_conf.c b/source3/utils/net_rpc_conf.c
index 8c5717c519..5396e0f6d4 100644
--- a/source3/utils/net_rpc_conf.c
+++ b/source3/utils/net_rpc_conf.c
@@ -1859,7 +1859,7 @@ static NTSTATUS rpc_conf_setparm_internal(struct net_context *c,
goto error;
}
- if (rpc_conf_reg_valname_forbidden(canon_valname)) {
+ if (!smbconf_reg_parameter_is_valid(canon_valname)) {
d_fprintf(stderr, "Parameter '%s' not allowed in registry.\n",
canon_valname);
werr = WERR_INVALID_PARAM;