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:
Felix Fietkau 2013-03-17 18:29:38 +01:00
parent 460301e62d
commit 47b38c98ae

View file

@ -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;
}