[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
bernd.edlinger at hotmail.de
bernd.edlinger at hotmail.de
Fri Jan 26 18:17:24 UTC 2018
The branch OpenSSL_1_1_0-stable has been updated
via d667fa22c859709dc70b78f619e446f1e640f578 (commit)
from 847997f98c28b3b8ceb2b95ef1751f7c7c1bfa61 (commit)
- Log -----------------------------------------------------------------
commit d667fa22c859709dc70b78f619e446f1e640f578
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Fri Jan 26 19:15:28 2018 +0100
Fix some style nits in commit eee8a40
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5173)
(cherry picked from commit df05f155a69b96b174e0e47bc689bf729de684b6)
-----------------------------------------------------------------------
Summary of changes:
apps/s_socket.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/apps/s_socket.c b/apps/s_socket.c
index ee7e4eb..15596ba 100644
--- a/apps/s_socket.c
+++ b/apps/s_socket.c
@@ -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);
More information about the openssl-commits
mailing list