X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source3%2Futils%2Fnet_conf.c;h=e8481b4d5f975e8332c0b6cd366a4d2eb6c0bbd8;hb=1d9f2815433f8fe0885f672fa8bc490638809c00;hp=e43cd1216446024c6827779e3290a2d40f5d0a0b;hpb=d16c2aabd7c46f3d294e2401ad1ee4685486cd4b;p=metze%2Fsamba%2Fwip.git diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index e43cd1216446..e8481b4d5f97 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -30,6 +30,7 @@ #include "includes.h" #include "system/filesys.h" #include "utils/net.h" +#include "utils/net_conf_util.h" #include "lib/smbconf/smbconf.h" #include "lib/smbconf/smbconf_init.h" #include "lib/smbconf/smbconf_reg.h" @@ -788,6 +789,10 @@ static int net_conf_setparm(struct net_context *c, struct smbconf_ctx *conf_ctx, } value_str = argv[2]; + if (!net_conf_param_valid(service,param, value_str)) { + goto done; + } + err = smbconf_transaction_start(conf_ctx); if (!SBC_ERROR_IS_OK(err)) { d_printf(_("error starting transaction: %s\n"),