X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_proto.c;h=07bb9faad9273e1faa95e753eff93351a4b0d068;hp=1b3216fba67163c1422350c83b8cd39f9239160d;hb=fa989780bda3ad10fcbb637390d59afe2b32ba81;hpb=d80ebf55afcde808265e4702c162d6b40d649260 diff --git a/ubusd_proto.c b/ubusd_proto.c index 1b3216f..07bb9fa 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -176,6 +176,10 @@ static int ubusd_handle_invoke(struct ubus_client *cl, struct ubus_msg_buf *ub, obj = container_of(id, struct ubus_object, id); method = blob_data(attr[UBUS_ATTR_METHOD]); + + if (!obj->client) + return obj->recv_msg(cl, method, attr[UBUS_ATTR_DATA]); + blob_buf_init(&b, 0); blob_put_int32(&b, UBUS_ATTR_OBJID, obj->id.id); blob_put_string(&b, UBUS_ATTR_METHOD, method);