projects
/
oweals
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f899d
)
fix off-by-one in acl match iteration
author
John Crispin
<blogic@openwrt.org>
Tue, 22 Sep 2015 04:20:55 +0000
(06:20 +0200)
committer
John Crispin
<blogic@openwrt.org>
Tue, 22 Sep 2015 04:20:55 +0000
(06:20 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
ubusd_acl.c
patch
|
blob
|
history
diff --git
a/ubusd_acl.c
b/ubusd_acl.c
index 1d965c0e57d195f4251755072b3d8e250b2762a6..491b233427abab7cfa1b4be495b7b2a77990e0b6 100644
(file)
--- a/
ubusd_acl.c
+++ b/
ubusd_acl.c
@@
-104,7
+104,7
@@
ubusd_acl_check(struct ubus_client *cl, const char *obj,
return 0;
acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl);
- while (acl
&& !avl_is_last(&ubusd_acls, &acl->avl)
) {
+ while (acl) {
int diff = ubusd_acl_match_path(obj, acl->avl.key, NULL);
if (diff)