phy: fix wrong order in FuzzInjector TX. Fixes #525.

This commit is contained in:
Dario Nieuwenhuis 2021-10-03 21:39:55 +02:00
parent 8058a6289f
commit 6d61f5ab6c
1 changed files with 2 additions and 1 deletions

View File

@ -123,8 +123,9 @@ impl<'a, Tx: phy::TxToken, FTx: Fuzzer> phy::TxToken for TxToken<'a, Tx, FTx> {
{ {
let Self { fuzzer, token } = self; let Self { fuzzer, token } = self;
token.consume(timestamp, len, |buf| { token.consume(timestamp, len, |buf| {
let result = f(buf);
fuzzer.fuzz_packet(buf); fuzzer.fuzz_packet(buf);
f(buf) result
}) })
} }
} }