phy: fix wrong order in FuzzInjector TX. Fixes #525.
This commit is contained in:
parent
8058a6289f
commit
6d61f5ab6c
|
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue