mirror of https://github.com/ctz/rustls
Don't specially handle unauthenticated close_notify alerts
(cherry picked from commit 2f2aae15a4
)
# Conflicts:
# rustls/src/common_state.rs
This commit is contained in:
parent
d1345fc39a
commit
dc143e369e
|
@ -1307,8 +1307,8 @@ impl CommonState {
|
|||
}
|
||||
|
||||
// If we get a CloseNotify, make a note to declare EOF to our
|
||||
// caller.
|
||||
if alert.description == AlertDescription::CloseNotify {
|
||||
// caller. But do not treat unauthenticated alerts like this.
|
||||
if self.may_receive_application_data && alert.description == AlertDescription::CloseNotify {
|
||||
self.has_received_close_notify = true;
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue