From 12d474e2b4cb89e2c4c5b44058f5da526d2cb935 Mon Sep 17 00:00:00 2001 From: Jef Poskanzer Date: Thu, 2 May 2013 15:28:30 -0700 Subject: [PATCH] A couple other places that used struct sockaddr_in when they should have used struct sockaddr_storage - fixed now. --- src/iperf_server_api.c | 2 +- src/iperf_tcp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iperf_server_api.c b/src/iperf_server_api.c index 7bc76b0..4b23d98 100644 --- a/src/iperf_server_api.c +++ b/src/iperf_server_api.c @@ -101,7 +101,7 @@ iperf_accept(struct iperf_test *test) int rbuf = ACCESS_DENIED; char cookie[COOKIE_SIZE]; socklen_t len; - struct sockaddr_in addr; + struct sockaddr_storage addr; len = sizeof(addr); if ((s = accept(test->listener, (struct sockaddr *) &addr, &len)) < 0) { diff --git a/src/iperf_tcp.c b/src/iperf_tcp.c index 00d3843..3165842 100644 --- a/src/iperf_tcp.c +++ b/src/iperf_tcp.c @@ -82,7 +82,7 @@ iperf_tcp_accept(struct iperf_test * test) int rbuf = ACCESS_DENIED; char cookie[COOKIE_SIZE]; socklen_t len; - struct sockaddr_in addr; + struct sockaddr_storage addr; len = sizeof(addr); if ((s = accept(test->listener, (struct sockaddr *) &addr, &len)) < 0) {