[Spice-devel] [common PATCH 2/4 v2] ssl-verify: Don't print DNS when using IP
Lukas Venhoda
lvenhoda at redhat.com
Thu Oct 8 07:32:56 PDT 2015
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
More information about the Spice-devel
mailing list