mirror of https://github.com/aria2/aria2
Merge pull request #1214 from aria2/fix-gnutls-empty-cn-bug
gnutls: Fix bug that commonName is always emptypull/1236/head
commit
eb30bb1a52
|
@ -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