1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

libsmbconf: prevent getting/deleting value "includes".

This has to be handled differently (by using get_includes / set_includes)

Michael
This commit is contained in:
Michael Adam 2008-04-09 09:54:17 +02:00
parent 2c8c65d690
commit 5a880c6a2f

View File

@ -884,6 +884,11 @@ static WERROR smbconf_reg_get_parameter(struct smbconf_ctx *ctx,
goto done;
}
if (!smbconf_reg_valname_valid(param)) {
werr = WERR_INVALID_PARAM;
goto done;
}
if (!smbconf_value_exists(key, param)) {
werr = WERR_INVALID_PARAM;
goto done;
@ -923,6 +928,11 @@ static WERROR smbconf_reg_delete_parameter(struct smbconf_ctx *ctx,
goto done;
}
if (!smbconf_reg_valname_valid(param)) {
werr = WERR_INVALID_PARAM;
goto done;
}
if (!smbconf_value_exists(key, param)) {
werr = WERR_INVALID_PARAM;
goto done;