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:
Nils Ohlmeier [:drno] 2017-04-20 19:52:24 -07:00
Родитель 6474ffcc78
Коммит f588ac7e28
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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();