so_reuseport_lb_test: correct setsockopt parameter size
Change type of variable used in setsocketopt so correct size of option is passed. Test failure was identified when running the test on PowerPC64, and the following error message was seen: "bind () failed: Address already in use" Submitted by: Fernando Valle <fernando.valle@eldorado.org.br> Reviewed by: melifaro, adalava Approved by: jhibbits (mentor) Sponsored by: Eldorado Research Institute (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D24164
This commit is contained in:
parent
59b95f1bfb
commit
b4c85238f0
@ -108,7 +108,7 @@ lb_simple_accept_loop(int domain, const struct sockaddr *addr, int sds[],
|
||||
static int
|
||||
lb_listen_socket(int domain, int flags)
|
||||
{
|
||||
size_t one;
|
||||
int one;
|
||||
int error, sd;
|
||||
|
||||
sd = socket(domain, SOCK_STREAM | flags, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user