diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 01:45:21 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 01:45:21 +0100 |
commit | 88411527bec40d196dc365a29b0e3cd3e6b6bc1d (patch) | |
tree | 3395bc279d4155fedcb83340fdcc043177d1e0d1 /ubusd.c | |
parent | 4ae1159f62958a386865ec2213f5f84b7220e4d8 (diff) | |
download | ubus-88411527bec40d196dc365a29b0e3cd3e6b6bc1d.tar.gz |
fix message refcounting
Diffstat (limited to 'ubusd.c')
-rw-r--r-- | ubusd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,7 @@ static void ubus_msg_enqueue(struct ubus_client *cl, struct ubus_msg_buf *ub) if (cl->tx_queue[cl->txq_tail]) return; - cl->tx_queue[cl->txq_tail] = ub; + cl->tx_queue[cl->txq_tail] = ubus_msg_ref(ub); cl->txq_tail = (cl->txq_tail + 1) % ARRAY_SIZE(cl->tx_queue); } |