- Fix uninitialized variable warning in create_tcp_accept_sock.

This commit is contained in:
W.C.A. Wijngaards 2024-07-23 10:42:36 +02:00
parent 30da725e67
commit c4541e634b
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- Fix compile when the compiler does not support the noreturn
attribute.
- Fix to have empty definition when not supported for weak attribute.
- Fix uninitialized variable warning in create_tcp_accept_sock.
19 July 2024: Wouter
- Add dnstap-sample-rate that logs only 1/N messages, for high volume

View File

@ -675,7 +675,7 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto,
int* reuseport, int transparent, int mss, int nodelay, int freebind,
int use_systemd, int dscp)
{
int s;
int s = -1;
char* err;
#if defined(SO_REUSEADDR) || defined(SO_REUSEPORT) || defined(IPV6_V6ONLY) || defined(IP_TRANSPARENT) || defined(IP_BINDANY) || defined(IP_FREEBIND) || defined(SO_BINDANY)
int on = 1;