diff --git a/proxy.c b/proxy.c index c631d88..349a26b 100644 --- a/proxy.c +++ b/proxy.c @@ -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;