libmemif: memif_rx_burst fix
Change-Id: I2f488fef828df8915b57552567e1be79efe69700
Signed-off-by: Jakub Grajciar <Jakub.Grajciar@pantheon.tech>
diff --git a/extras/libmemif/src/main.c b/extras/libmemif/src/main.c
index 4942767..8cc0d66 100644
--- a/extras/libmemif/src/main.c
+++ b/extras/libmemif/src/main.c
@@ -1843,8 +1843,8 @@
b1->desc_index = mq->last_head;
i = 0;
- b0->data_len = 0;
- b0->buffer_len = 0;
+ b1->data_len = 0;
+ b1->buffer_len = 0;
b1->data = memif_get_buffer (conn, ring, mq->last_head);
b1->data_len += ring->desc[mq->last_head].length;