]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Better braces in if statement in TCP fastopen code.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 16 Apr 2019 12:53:50 +0000 (12:53 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 16 Apr 2019 12:53:50 +0000 (12:53 +0000)
git-svn-id: file:///svn/unbound/trunk@5160 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/listen_dnsport.c

index 1083408ddb2e6528166161a9080d7221f4cbf15c..95646243bcd0531c224d007748b71fbf1197da6f 100644 (file)
@@ -1,3 +1,6 @@
+16 April 2019: Wouter
+       - Better braces in if statement in TCP fastopen code.
+
 15 April 2019: Wouter
        - Fix tls write event for read state change to re-call SSL_write and
          not resume the TLS handshake.
index e74d1abcffc5152fc503b9a9cbb897e5017fa307..b73a0cc95b6d7db5359a391cfc640c971577cd21 100644 (file)
@@ -851,13 +851,16 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto,
 #ifdef ENOPROTOOPT
                /* squelch ENOPROTOOPT: freebsd server mode with kernel support
                   disabled, except when verbosity enabled for debugging */
-               if(errno != ENOPROTOOPT || verbosity >= 3)
+               if(errno != ENOPROTOOPT || verbosity >= 3) {
 #endif
                  if(errno == EPERM) {
                        log_warn("Setting TCP Fast Open as server failed: %s ; this could likely be because sysctl net.inet.tcp.fastopen.enabled, net.inet.tcp.fastopen.server_enable, or net.ipv4.tcp_fastopen is disabled", strerror(errno));
                  } else {
                        log_err("Setting TCP Fast Open as server failed: %s", strerror(errno));
                  }
+#ifdef ENOPROTOOPT
+               }
+#endif
        }
 #endif
        return s;