зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1303867: destroy SSL FD to send out DTLS allert on close. r=mt
MozReview-Commit-ID: EaMkehmTcs3 --HG-- extra : rebase_source : 18acf0fe7bc3b6ccffc0c5667a962161411b56d5
This commit is contained in:
Родитель
6474ffcc78
Коммит
f588ac7e28
|
@ -370,6 +370,9 @@ static const struct PRIOMethods TransportLayerMethods = {
|
|||
};
|
||||
|
||||
TransportLayerDtls::~TransportLayerDtls() {
|
||||
// Destroy the NSS instance first so it can still send out an alert before
|
||||
// we disable the nspr_io_adapter_.
|
||||
ssl_fd_ = nullptr;
|
||||
nspr_io_adapter_->SetEnabled(false);
|
||||
if (timer_) {
|
||||
timer_->Cancel();
|
||||
|
|
Загрузка…
Ссылка в новой задаче