X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_obj.c;h=d1e53f8fb4f5c3cebd56e8eb1e165afaca7f35e1;hp=ffd5330560f529d0f4cf1881fa57c03b659309ad;hb=cb1feedb5e1388d7aea8bddef1284690c590874f;hpb=9a03063aee0560fd5c8978efda378011eac1a11f diff --git a/ubusd_obj.c b/ubusd_obj.c index ffd5330..d1e53f8 100644 --- a/ubusd_obj.c +++ b/ubusd_obj.c @@ -115,7 +115,7 @@ struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr struct ubus_object_type *type = NULL; if (attr[UBUS_ATTR_OBJTYPE]) - type = ubus_get_obj_type(blob_get_int32(attr[UBUS_ATTR_OBJTYPE])); + type = ubus_get_obj_type(blob_get_u32(attr[UBUS_ATTR_OBJTYPE])); else if (attr[UBUS_ATTR_SIGNATURE]) type = ubus_create_obj_type(attr[UBUS_ATTR_SIGNATURE]);