From: Jo-Philipp Wich Date: Sat, 10 Aug 2013 19:56:06 +0000 (+0200) Subject: session: fix acl dumping if last object of previous scope is equal to first object... X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=commitdiff_plain;h=743901cfca18f52fa8d2eb3e42bad76ef8219e75 session: fix acl dumping if last object of previous scope is equal to first object of next one --- diff --git a/session.c b/session.c index 9f42226..35324bf 100644 --- a/session.c +++ b/session.c @@ -142,6 +142,7 @@ rpc_session_dump_acls(struct rpc_session *ses, struct blob_buf *b) { if (c) blobmsg_close_table(b, c); c = blobmsg_open_table(b, acl_scope->avl.key); + lastobj = NULL; } d = NULL;