libubus: fix passing the return code of the subscriber callback to the notifier
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Mar 2013 17:29:38 +0000 (18:29 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 17 Mar 2013 17:29:38 +0000 (18:29 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-sub.c

index 167630c69b5b45fb0e6263214625019c5ee01444..8793133ad05ec54802be86860e032aa10186a99c 100644 (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;
 }