1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-common: Log a message when an invalid conf value is encountered

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-08-31 09:34:12 +10:00 committed by Amitay Isaacs
parent ebb28c57a1
commit a017d3181a

View File

@ -1135,6 +1135,10 @@ static bool conf_load_option(const char *name,
value.type = opt->type;
ret = conf_value_from_string(tmp_ctx, value_str, &value);
if (ret != 0) {
D_ERR("conf: invalid value [%s] -> \"%s\" = \"%s\"\n",
state->s->name,
name,
value_str);
talloc_free(tmp_ctx);
state->err = ret;
return false;