mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
gnutls: Fix bug that commonName is always empty
This commit is contained in:
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
Block a user