Browse Source

libubus: fix passing the return code of the subscriber callback to the notifier

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
master
Felix Fietkau 8 years ago
parent
commit
47b38c98ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libubus-sub.c

+ 1
- 1
libubus-sub.c 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;
}

Loading…
Cancel
Save