diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-05-26 15:49:18 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-05-26 17:24:24 +0200 |
commit | 67c8a3fda26e441d3ec4a19f50ac72eca8deb14b (patch) | |
tree | 1f35287ebf94619e96edf3cae148360db46b39e2 | |
parent | 970ce1ae4e4b99f4f181d58c5c1e0eb6d3afe5b9 (diff) | |
download | rpcd-67c8a3fda26e441d3ec4a19f50ac72eca8deb14b.tar.gz |
uci: reset uci_ptr flags when merging options during section add
Fixes: FS#3126
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 078bb57e0769c987c05244abe1f7d8d53e0e323e)
-rw-r--r-- | uci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -734,6 +734,7 @@ rpc_uci_add(struct ubus_context *ctx, struct ubus_object *obj, { blobmsg_for_each_attr(cur, tb[RPC_A_VALUES], rem) { + ptr.flags = 0; ptr.o = NULL; ptr.option = blobmsg_name(cur); |