A couple other places that used struct sockaddr_in when they should
have used struct sockaddr_storage - fixed now.
This commit is contained in:
parent
111645ed0f
commit
12d474e2b4
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user