ubusd: allow registration of anonymous objects with type
This commit is contained in:
parent
c0c06ec7ea
commit
9f911f14bf
1 changed files with 0 additions and 3 deletions
|
@ -132,9 +132,6 @@ struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr
|
|||
else if (attr[UBUS_ATTR_SIGNATURE])
|
||||
type = ubus_create_obj_type(attr[UBUS_ATTR_SIGNATURE]);
|
||||
|
||||
if (!!type ^ !!attr[UBUS_ATTR_OBJPATH])
|
||||
return NULL;
|
||||
|
||||
obj = ubusd_create_object_internal(type, 0);
|
||||
if (type)
|
||||
ubus_unref_object_type(type);
|
||||
|
|
Loading…
Reference in a new issue