projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubusd: don't check ACL when object is NULL
[project/ubus.git]
/
ubusd_acl.c
diff --git
a/ubusd_acl.c
b/ubusd_acl.c
index 85ada5dc87904207e8f002a28548c67072c95f9d..2700c863da144a7a11e60a26aade4b1913a9d5eb 100644
(file)
--- a/
ubusd_acl.c
+++ b/
ubusd_acl.c
@@
-101,7
+101,7
@@
ubusd_acl_check(struct ubus_client *cl, const char *obj,
struct blob_attr *cur;
int rem;
- if (!cl->uid)
+ if (!cl->uid
|| !obj
)
return 0;
acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl);