libubus: fix passing the return code of the subscriber callback to the notifier
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
460301e62d
commit
47b38c98ae
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ static int ubus_subscriber_cb(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
|
||||
s = container_of(obj, struct ubus_subscriber, obj);
|
||||
if (s->cb)
|
||||
s->cb(ctx, obj, req, method, msg);
|
||||
return s->cb(ctx, obj, req, method, msg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue