X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/10ac8d7f410e55043b0b182fb77f2e8fb6a7aed4..44de51a174765f7f5ecb250638cdb3fe64ec67dc:/src/src/ip.c diff --git a/src/src/ip.c b/src/src/ip.c index ee91293fa..e85dcb23e 100644 --- a/src/src/ip.c +++ b/src/src/ip.c @@ -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); @@ -261,8 +260,8 @@ if (fastopen_blob && tcp_fastopen_ok) /* seen for with-data, proper TFO opt, with-cookie case */ { DEBUG(D_transport|D_v) - debug_printf("non-TFO mode connection attempt to %s, %d data\n", - address, fastopen_blob->len); + debug_printf("non-TFO mode connection attempt to %s, %lu data\n", + address, (unsigned long)fastopen_blob->len); tcp_out_fastopen = fastopen_blob->len > 0 ? 2 : 1; } else if (errno == EINPROGRESS) /* expected if we had no cookie for peer */ @@ -294,8 +293,8 @@ else { legacy_connect: DEBUG(D_transport|D_v) if (fastopen_blob) - debug_printf("non-TFO mode connection attempt to %s, %d data\n", - address, fastopen_blob->len); + debug_printf("non-TFO mode connection attempt to %s, %lu data\n", + address, (unsigned long)fastopen_blob->len); if ((rc = connect(sock, s_ptr, s_len)) >= 0) if ( fastopen_blob && fastopen_blob->data && fastopen_blob->len && send(sock, fastopen_blob->data, fastopen_blob->len, 0) < 0)