fixed typo

This commit is contained in:
mamoniot 2023-03-23 13:20:45 -04:00
parent 7cc8db2187
commit 5bf62d8236
No known key found for this signature in database
GPG key ID: ADCCDBBE0E3D3B3B

View file

@ -548,7 +548,7 @@ impl<Application: ApplicationLayer> Context<Application> {
let incoming_packet = if fragment_count > 1 {
// incoming_counter is expected to be a random u64 generated by the remote peer.
// Using just incoming_counter to defragment would be good DOS resistance,
// but why not make it harder by hasing it with a random salt and the physical path in as well.
// but why not make it harder by hasing it with a random salt and the physical path as well.
let mut hasher = self.defrag_salt.build_hasher();
source.hash(&mut hasher);
hasher.write_u64(incoming_counter);