summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-22 03:44:58 +0200
committerMichael Adam <obnox@samba.org>2013-09-24 07:44:28 +0200
commit0c4e5fcc536723ac2e3c55273fc50d1727e91d0f (patch)
treeac2e05031e313e961cc0492e43a3aef793c2d616
parentc1be069be94b71c1d85471314c0971bd091af194 (diff)
downloadsamba-0c4e5fcc536723ac2e3c55273fc50d1727e91d0f.tar.gz
samba-0c4e5fcc536723ac2e3c55273fc50d1727e91d0f.tar.bz2
samba-0c4e5fcc536723ac2e3c55273fc50d1727e91d0f.zip
s3:net rpc conf: use the published smbconf_reg_parameter_is_valid()
Instead of the duplicated rpc_conf_reg_valname_forbidden() Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-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;