Skip to content

Commit

Permalink
when the client sends more input after EndOfMessage, return BadReques…
Browse files Browse the repository at this point in the history
…t error
  • Loading branch information
Folkert de Vries authored and davidv1992 committed Nov 30, 2023
1 parent 163f9d8 commit 8fadd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntp-proto/src/nts_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ impl KeyExchangeServer {
},
State::Done => {
// client is sending more bytes, but we don't expect any more
let error = KeyExchangeError::InternalServerError;
let error = KeyExchangeError::BadRequest;
Self::send_error_record(&mut self.tls_connection, &error);
ControlFlow::Break(Err(error))
}
Expand Down

0 comments on commit 8fadd0e

Please sign in to comment.