summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/examples/common/packet_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/libmemif/examples/common/packet_handler.c')
-rw-r--r--extras/libmemif/examples/common/packet_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/libmemif/examples/common/packet_handler.c b/extras/libmemif/examples/common/packet_handler.c
index 9d3e4d703c1..1e97e46dba2 100644
--- a/extras/libmemif/examples/common/packet_handler.c
+++ b/extras/libmemif/examples/common/packet_handler.c
@@ -48,7 +48,7 @@ icmp_packet_handler (memif_connection_t *c)
for (i = 0; i < c->tx_buf_num; i++)
{
uint32_t len;
- void *packet = c->rx_bufs[i].data;
+ void *packet = c->tx_bufs[i].data;
memcpy (c->tx_bufs[i].data, c->rx_bufs[i].data, c->rx_bufs[i].len);
c->tx_bufs[i].flags = c->rx_bufs[i].flags;