From 47b38c98ae1690c3a4430b7850f207a4b9294896 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 17 Mar 2013 18:29:38 +0100 Subject: [PATCH] libubus: fix passing the return code of the subscriber callback to the notifier Signed-off-by: Felix Fietkau --- libubus-sub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1