Skip to content

Commit

Permalink
phy: fix wrong order in FuzzInjector TX. Fixes #525.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Oct 3, 2021
1 parent a5e4e5a commit 41667f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phy/fuzz_injector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ impl<'a, Tx: phy::TxToken, FTx: Fuzzer> phy::TxToken for TxToken<'a, Tx, FTx> {
{
let Self { fuzzer, token } = self;
token.consume(timestamp, len, |buf| {
let result = f(buf);
fuzzer.fuzz_packet(buf);
f(buf)
result
})
}
}

0 comments on commit 41667f8

Please sign in to comment.