Skip to content

Commit

Permalink
- Fix uninitialized variable warning in create_tcp_accept_sock.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jul 23, 2024
1 parent 30da725 commit c4541e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion services/listen_dnsport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4541e6

Please sign in to comment.