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);
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);