diff mbox

[OpenWrt-Devel,ubus,3/3] ubusd: fix inverted check in ubusd_reply_add

Message ID 0a3e77c7af0586f24ca0b54bc37617f87a8191dc.1472125392.git.denis.osvald@sartura.hr
State Changes Requested
Delegated to: John Crispin
Headers show

Commit Message

Denis Osvald Aug. 25, 2016, 11:54 a.m. UTC
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
---
 ubusd_acl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/ubusd_acl.c b/ubusd_acl.c
index 2db515e..0028431 100644
--- a/ubusd_acl.c
+++ b/ubusd_acl.c
@@ -432,7 +432,7 @@  ubusd_reply_add(struct ubus_object *obj)
 		if (!acl->priv)
 			continue;
 
-		if (!ubusd_acl_match_path(obj->path.key, acl->avl.key, NULL))
+		if (ubusd_acl_match_path(obj->path.key, acl->avl.key, NULL))
 			continue;
 
 		c = blobmsg_open_table(&b, NULL);