summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-05-26 15:49:18 +0200
committerJo-Philipp Wich <jo@mein.io>2020-05-26 16:16:50 +0200
commit662d0346caada9de6f76d8f2e1e527abae626a84 (patch)
treef3c4b2afb905ceb343ab1da4acaa9e18f73668af
parentdd46d6dfc3ed3c8caefafdf1be46a726c1edb98f (diff)
downloadrpcd-662d0346caada9de6f76d8f2e1e527abae626a84.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uci.c b/uci.c
index 522c24e..327b17f 100644
--- a/uci.c
+++ b/uci.c
@@ -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);