A couple other places that used struct sockaddr_in when they should

have used struct sockaddr_storage - fixed now.
This commit is contained in:
Jef Poskanzer 2013-05-02 15:28:30 -07:00
parent 111645ed0f
commit 12d474e2b4
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {