ubusd: convert tx_queue to linked list
[project/ubus.git] / ubusd_proto.c
index 4746605f4960a45145741919edb49535f032dfe8..b20f91c793982159515d8afe8bae92e101223dda 100644 (file)
@@ -495,6 +495,7 @@ struct ubus_client *ubusd_proto_new_client(int fd, uloop_fd_handler cb)
                goto free;
 
        INIT_LIST_HEAD(&cl->objects);
+       INIT_LIST_HEAD(&cl->tx_queue);
        cl->sock.fd = fd;
        cl->sock.cb = cb;
        cl->pending_msg_fd = -1;