From: pme.lebleu@gmail.com Date: Wed, 4 Oct 2017 11:14:16 +0000 (+0200) Subject: service: fix SERVICE_ATTR_NAME usage in service_handle_set X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4a183f91f88be1e195e40277f709177d5142ba9;p=oweals%2Fprocd.git 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 --- diff --git a/service/service.c b/service/service.c index 02a29fa..9c798aa 100644 --- a/service/service.c +++ b/service/service.c @@ -267,7 +267,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;