From: Jens Axboe Date: Tue, 25 Feb 2014 21:43:38 +0000 (-0800) Subject: net: fix accidental overwrite of more than just the address X-Git-Tag: fio-2.1.6~15 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=68631b36e37e1ecaadc1e5697ead4adc21640562;p=fio.git 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 --- 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))