We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e28cd commit 0c6cd7eCopy full SHA for 0c6cd7e
rustls/src/common_state.rs
@@ -439,8 +439,8 @@ impl CommonState {
439
}
440
441
// If we get a CloseNotify, make a note to declare EOF to our
442
- // caller.
443
- if alert.description == AlertDescription::CloseNotify {
+ // caller. But do not treat unauthenticated alerts like this.
+ if self.may_receive_application_data && alert.description == AlertDescription::CloseNotify {
444
self.has_received_close_notify = true;
445
return Ok(());
446
0 commit comments