Print IP address instead of DNS, when using IP adress connection.
---
Changes since v1:
 - New patch
    - Wasn't changed in v1
---
 common/ssl_verify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/ssl_verify.c b/common/ssl_verify.c
index 24c6e2c..72a3dd8 100644
--- a/common/ssl_verify.c
+++ b/common/ssl_verify.c
@@ -215,7 +215,7 @@ static int verify_hostname(X509* cert, const char *hostname)
                 if ((addr_len == alt_ip_len)&&
                     !memcmp(ASN1_STRING_data(name->d.iPAddress), &addr, 
addr_len)) {
                     spice_debug("alt name IP match=%s",
-                                inet_ntoa(*((struct 
in_addr*)ASN1_STRING_data(name->d.dNSName))));
+                                inet_ntoa(*((struct 
in_addr*)ASN1_STRING_data(name->d.iPAddress))));
                     GENERAL_NAMES_free(subject_alt_names);
                     return 1;
                 }
--
2.4.3

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to