Skip to content

Commit

Permalink
Don't specially handle unauthenticated close_notify alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Apr 19, 2024
1 parent a1e28cd commit 0c6cd7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rustls/src/common_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,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(());
}
Expand Down

0 comments on commit 0c6cd7e

Please sign in to comment.