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 e163587 commit 2f2aae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rustls/src/common_state.rs
Expand Up @@ -445,8 +445,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 2f2aae1

Please sign in to comment.