From 8d5d29cd1fd744a83462793b4e33b9ac1aa00955 Mon Sep 17 00:00:00 2001 From: "pme.lebleu@gmail.com" Date: Wed, 4 Oct 2017 13:14:16 +0200 Subject: [PATCH] service: fix SERVICE_ATTR_NAME usage in service_handle_set The SERVICE_SET_NAME belongs to enum SERVICE_SET_XXXX, not SERVICE_ATTR_NAME. Signed-off-by: Pierre Lebleu --- service/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/service.c b/service/service.c index fa7d435..f539273 100644 --- a/service/service.c +++ b/service/service.c @@ -248,7 +248,7 @@ service_handle_set(struct ubus_context *ctx, struct ubus_object *obj, int ret; blobmsg_parse(service_set_attrs, __SERVICE_SET_MAX, tb, blob_data(msg), blob_len(msg)); - cur = tb[SERVICE_ATTR_NAME]; + cur = tb[SERVICE_SET_NAME]; if (!cur) return UBUS_STATUS_INVALID_ARGUMENT; -- 2.30.2