Skip to content
Snippets Groups Projects
Commit a1b9be03 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

error handling error fix

parent ed17a4f8
Branches
Tags
No related merge requests found
...@@ -516,7 +516,7 @@ int print_list(struct ubus_context *ctx, struct ubus_object *obj, ...@@ -516,7 +516,7 @@ int print_list(struct ubus_context *ctx, struct ubus_object *obj,
int rv; int rv;
rv = list_to_blob(&bb); rv = list_to_blob(&bb);
if (rv == 0) if (rv != 0)
goto fail; goto fail;
ubus_send_reply(ctx, req, bb.head); ubus_send_reply(ctx, req, bb.head);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment