CMakeLists.txt: bump minimum cmake version
[project/ubus.git] / ubusd.c
diff --git a/ubusd.c b/ubusd.c
index 0e1b0c961b0688b565fda9272ae93d1a378e26fb..1d76b72e42867de81f2527bc288bc017535b5f0b 100644 (file)
--- a/ubusd.c
+++ b/ubusd.c
@@ -154,7 +154,7 @@ static void ubus_msg_enqueue(struct ubus_client *cl, struct ubus_msg_buf *ub)
        INIT_LIST_HEAD(&ubl->list);
        ubl->msg = ubus_msg_ref(ub);
 
-       list_add_tail(&cl->tx_queue, &ubl->list);
+       list_add_tail(&ubl->list, &cl->tx_queue);
        cl->txq_len += ub->len;
 }