From a1b9be0363428b1a2e8476f0b657598d849d0196 Mon Sep 17 00:00:00 2001
From: Jakob Olsson <jakobols@kth.se>
Date: Tue, 5 Jun 2018 09:26:12 +0200
Subject: [PATCH] error handling error fix

---
 dongle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dongle.c b/dongle.c
index aca2978..9ec65da 100644
--- a/dongle.c
+++ b/dongle.c
@@ -516,7 +516,7 @@ int print_list(struct ubus_context *ctx, struct ubus_object *obj,
 	int rv;
 
 	rv = list_to_blob(&bb);
-	if (rv == 0)
+	if (rv != 0)
 		goto fail;
 
 	ubus_send_reply(ctx, req, bb.head);
-- 
GitLab