From: Felix Fietkau Date: Sun, 17 Mar 2013 17:29:38 +0000 (+0100) Subject: libubus: fix passing the return code of the subscriber callback to the notifier X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=47b38c98ae1690c3a4430b7850f207a4b9294896 libubus: fix passing the return code of the subscriber callback to the notifier Signed-off-by: Felix Fietkau --- diff --git a/libubus-sub.c b/libubus-sub.c index 167630c..8793133 100644 --- a/libubus-sub.c +++ b/libubus-sub.c @@ -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; }