bug 67582 - set channel on security info object for ssl-forcehandshake sockets. r=pavlov, sr=mscott.
This commit is contained in:
Родитель
aeefd9e78e
Коммит
4fcf5caebe
|
@ -1046,8 +1046,10 @@ nsresult nsSocketTransport::doConnection(PRInt16 aSelectFlags)
|
|||
else if (nsCRT::strcmp(mSocketTypes[type], "ssl-forcehandshake") == 0) {
|
||||
mSecurityInfo = socketInfo;
|
||||
nsCOMPtr<nsIChannelSecurityInfo> securityInfo = do_QueryInterface(mSecurityInfo, &rv);
|
||||
if (NS_SUCCEEDED(rv) && securityInfo)
|
||||
if (NS_SUCCEEDED(rv) && securityInfo) {
|
||||
securityInfo->SetForceHandshake(PR_TRUE);
|
||||
securityInfo->SetChannel(this);
|
||||
}
|
||||
}
|
||||
else if (nsCRT::strcmp(mSocketTypes[type], "socks") == 0) {
|
||||
// since socks is transparent, any layers above
|
||||
|
|
Загрузка…
Ссылка в новой задаче