Fix FreeBSD build (again)
authorJeremy Harris <jgh146exb@wizmail.org>
Tue, 10 Oct 2017 20:38:42 +0000 (21:38 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 10 Oct 2017 20:38:42 +0000 (21:38 +0100)
src/src/ip.c

index 1a2206c9d6e8457e5bd675a940e7bb8fe13b82c6..e85dcb23e9331a07ee82b9af46f53cbee5abf351 100644 (file)
@@ -171,8 +171,7 @@ tfo_probe(void)
 int sock, backlog = 5;
 
 if (  (sock = socket(SOCK_STREAM, AF_INET, 0)) < 0
-   && setsockopt(sock, IPPROTO_TCP, TCP_FASTOPEN,
-                   &connect_backlog, sizeof(smtp_connect_backlog))
+   && setsockopt(sock, IPPROTO_TCP, TCP_FASTOPEN, &backlog, sizeof(backlog))
    )
   tcp_fastopen_ok = TRUE;
 close(sock);