From 68631b36e37e1ecaadc1e5697ead4adc21640562 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 25 Feb 2014 13:43:38 -0800 Subject: [PATCH] net: fix accidental overwrite of more than just the address Commit 0b783341 accidentally overwrote more than just the address, causing garbage in the connection part. Signed-off-by: Jens Axboe --- engines/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/net.c b/engines/net.c index 8b85a886..dd06861c 100644 --- a/engines/net.c +++ b/engines/net.c @@ -913,10 +913,10 @@ static int fio_netio_setup_connect_inet(struct thread_data *td, if (is_ipv6(o)) { af = AF_INET6; - dst = &nd->addr6; + dst = &nd->addr6.sin6_addr; } else { af = AF_INET; - dst = &nd->addr; + dst = &nd->addr.sin_addr; } if (fio_fill_addr(td, host, af, dst, &res)) -- 2.25.1