]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
nfs2: improve READ parsing
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 25 Jan 2023 15:20:00 +0000 (16:20 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 25 Jan 2023 19:26:37 +0000 (20:26 +0100)
Inspired by commit ddf14e51dcf5dabdb4bc07414a118530e2a1b819

But keeping old nom version

rust/src/nfs/nfs2_records.rs

index ed5500db1c2248f0e5fa566f8ca48283d18be4b8..ff16a92adaafabfea4c00deb6af00cc91637361a 100644 (file)
@@ -79,7 +79,7 @@ named!(pub parse_nfs2_reply_read<NfsReplyRead>,
             status: be_u32
         >>  attr_blob: take!(68)
         >>  data_len: be_u32
-        >>  data_contents: rest
+        >>  data_contents: take!(data_len)
         >> (
             NfsReplyRead {
                 status,