dns: fix subtraction overflow in debug message

The math for the return value wasn't updated in the debug log
to match the logic and could lead to a subtraction overflow
pull/5266/head
Jason Ish 5 years ago
parent 80ccbff28a
commit cc154ce152

@ -566,7 +566,7 @@ impl DNSState {
}
} else {
SCLogDebug!("[request]Not enough DNS traffic to parse. Returning {}/{}",
consumed as u32, (cur_i.len() - consumed) as u32);
consumed as u32, (size + 2) as u32);
return AppLayerResult::incomplete(consumed as u32,
(size + 2) as u32);
}

Loading…
Cancel
Save