mirror of https://github.com/aria2/aria2
gnutls: Fix bug that commonName is always empty
parent
388d1ca330
commit
b8df7b0880
|
@ -341,6 +341,9 @@ int GnuTLSSession::tlsConnect(const std::string& hostname, TLSVersion& version,
|
|||
commonName.assign(altName, altNameLen);
|
||||
}
|
||||
}
|
||||
else {
|
||||
commonName.assign(altName, altNameLen);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!net::verifyHostname(hostname, dnsNames, ipAddrs, commonName)) {
|
||||
|
|
Loading…
Reference in New Issue