Fix some style nits in commit eee8a40
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 26 Jan 2018 18:15:28 +0000 (19:15 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 26 Jan 2018 18:17:02 +0000 (19:17 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5173)

(cherry picked from commit df05f155a69b96b174e0e47bc689bf729de684b6)

apps/s_socket.c

index ee7e4ebc280c62b26d1f99ce4303a277dd370d93..15596bab1dcfc5b53ea41660ae6ede7564215c2c 100644 (file)
@@ -160,17 +160,19 @@ int do_server(int *accept_sock, const char *host, const char *port,
     sock_protocol = BIO_ADDRINFO_protocol(res);
     sock_address = BIO_ADDRINFO_address(res);
     next = BIO_ADDRINFO_next(res);
-    if(sock_family == AF_INET6)
+    if (sock_family == AF_INET6)
         sock_options |= BIO_SOCK_V6_ONLY;
     if (next != NULL
-        && BIO_ADDRINFO_socktype(next) == sock_type
-        && BIO_ADDRINFO_protocol(next) == sock_protocol) {
-        if (sock_family == AF_INET && BIO_ADDRINFO_family(next) == AF_INET6) {
+            && BIO_ADDRINFO_socktype(next) == sock_type
+            && BIO_ADDRINFO_protocol(next) == sock_protocol) {
+        if (sock_family == AF_INET
+                && BIO_ADDRINFO_family(next) == AF_INET6) {
             sock_family = AF_INET6;
             sock_address = BIO_ADDRINFO_address(next);
-        }
-        else if (sock_family == AF_INET6 && BIO_ADDRINFO_family(next) == AF_INET)
+        } else if (sock_family == AF_INET6
+                   && BIO_ADDRINFO_family(next) == AF_INET) {
             sock_options &= ~BIO_SOCK_V6_ONLY;
+        }
     }
 
     asock = BIO_socket(sock_family, sock_type, sock_protocol, 0);