libubus: fix logic inversion for cancelling requests
authorFelix Fietkau <nbd@openwrt.org>
Thu, 30 May 2013 10:39:51 +0000 (12:39 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 30 May 2013 10:39:51 +0000 (12:39 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-req.c

index 2f2dce1e6f8ddecd08cf9b3f8a78ccf8324dd0f9..43a5c265d7c5c7ff42b6a1b32e310d9176760d6a 100644 (file)
@@ -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;