0
0
mirror of https://github.com/hufrea/byedpi.git synced 2025-06-30 18:43:04 +00:00

fix invalid argument

This commit is contained in:
Vladimir Davidovich 2024-08-05 13:44:01 +03:00
parent 4d643092ee
commit d2d5c4a6c7

View File

@ -938,7 +938,7 @@ int listen_socket(struct sockaddr_ina *srv)
close(srvfd);
return -1;
}
if (bind(srvfd, &srv->sa, sizeof(*srv)) < 0) {
if (bind(srvfd, &srv->sa, sizeof(srv->sa)) < 0) {
uniperror("bind");
close(srvfd);
return -1;