From 67c8a3fda26e441d3ec4a19f50ac72eca8deb14b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 26 May 2020 15:49:18 +0200 Subject: [PATCH] uci: reset uci_ptr flags when merging options during section add Fixes: FS#3126 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 078bb57e0769c987c05244abe1f7d8d53e0e323e) --- uci.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2