diff options
Diffstat (limited to 'lib/tls.c')
-rw-r--r-- | lib/tls.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -214,15 +214,15 @@ tls_verify_cert (struct rs_connection *conn) goto out; } - if (inet_pton(AF_INET, hostname, &addr)) + if (inet_pton (AF_INET, hostname, &addr)) success = (subjectaltnameaddr (peer_cert, AF_INET, &addr) == 1); - else if (inet_pton(AF_INET6, hostname, &addr)) + else if (inet_pton (AF_INET6, hostname, &addr)) success = (subjectaltnameaddr (peer_cert, AF_INET6, &addr) == 1); else success = (subjectaltnameregexp (peer_cert, GEN_DNS, hostname, NULL) == 1); if (!success) - success = (cnregexp(peer_cert, hostname, NULL) == 1); + success = (cnregexp (peer_cert, hostname, NULL) == 1); if (!success) err = rs_err_conn_push (conn, RSE_CERT, "server certificate doesn't " |