From f72dca720bb50d45b1b01bab5b01cb80c78c5230 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 30 May 2013 12:39:51 +0200 Subject: [PATCH] libubus: fix logic inversion for cancelling requests Signed-off-by: Felix Fietkau --- libubus-req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libubus-req.c b/libubus-req.c index 2f2dce1..43a5c26 100644 --- a/libubus-req.c +++ b/libubus-req.c @@ -66,7 +66,7 @@ int __hidden ubus_start_request(struct ubus_context *ctx, struct ubus_request *r void ubus_abort_request(struct ubus_context *ctx, struct ubus_request *req) { - if (!list_empty(&req->list)) + if (list_empty(&req->list)) return; req->cancelled = true; -- 2.30.2