diff --git a/main.c b/main.c index 2012a44..3365c13 100644 --- a/main.c +++ b/main.c @@ -86,7 +86,7 @@ int main(int argc, char* argv[]) { continue; } /* Allow reuse of socket despite binding */ - if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &yes, + if (setsockopt(socketfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) == -1) { perror("setsockopt"); exit(1);