mirror of
https://github.com/hufrea/byedpi.git
synced 2025-07-01 19:13:04 +00:00
fix invalid argument
This commit is contained in:
parent
4d643092ee
commit
d2d5c4a6c7
2
proxy.c
2
proxy.c
@ -938,7 +938,7 @@ int listen_socket(struct sockaddr_ina *srv)
|
|||||||
close(srvfd);
|
close(srvfd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (bind(srvfd, &srv->sa, sizeof(*srv)) < 0) {
|
if (bind(srvfd, &srv->sa, sizeof(srv->sa)) < 0) {
|
||||||
uniperror("bind");
|
uniperror("bind");
|
||||||
close(srvfd);
|
close(srvfd);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user