config.change triggers should only run if the config is valid

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin 2013-12-18 13:59:16 +01:00
parent 326f5bcaf6
commit bbaaa41f8c

2
uci.c
View file

@ -1144,8 +1144,8 @@ rpc_uci_revert_commit(struct ubus_context *ctx, struct blob_attr *msg, bool comm
{
uci_commit(cursor, &p, false);
uci_unload(cursor, p);
rpc_uci_trigger_event(ctx, blobmsg_get_string(tb[RPC_C_CONFIG]));
}
rpc_uci_trigger_event(ctx, blobmsg_get_string(tb[RPC_C_CONFIG]));
}
else
{