From: Sam Muhammed Date: Mon, 10 Jan 2022 23:52:34 +0000 (+0200) Subject: nfs4_records: add missing field to res_sequence_ok() X-Git-Tag: suricata-7.0.0-beta1~1072 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=463fbdc36dbc29438b0b5174e0e6bbef93f95198;p=thirdparty%2Fsuricata.git nfs4_records: add missing field to res_sequence_ok() Missing _seqid in sequence op struct left a trailing four zeros that are parsed by nfs4_res_compound_command() as a cmd causing a Switch Error Code --- diff --git a/rust/src/nfs/nfs4_records.rs b/rust/src/nfs/nfs4_records.rs index 1eb3629b8b..01929215c4 100644 --- a/rust/src/nfs/nfs4_records.rs +++ b/rust/src/nfs/nfs4_records.rs @@ -770,6 +770,7 @@ pub struct Nfs4ResponseSequence<'a> { fn nfs4_res_sequence_ok(i: &[u8]) -> IResult<&[u8], Nfs4ResponseSequence> { let (i, ssn_id) = take(16_usize)(i)?; + let (i, _seqid) = be_u32(i)?; let (i, _slots) = take(12_usize)(i)?; let (i, _flags) = be_u32(i)?; Ok((i, Nfs4ResponseSequence { ssn_id }))