From fa4dedc1d42784d01bedb9e92398eaec460854b4 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 25 Jan 2023 16:20:00 +0100 Subject: [PATCH] nfs2: improve READ parsing Inspired by commit ddf14e51dcf5dabdb4bc07414a118530e2a1b819 But keeping old nom version --- rust/src/nfs/nfs2_records.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/nfs/nfs2_records.rs b/rust/src/nfs/nfs2_records.rs index ed5500db1c..ff16a92ada 100644 --- a/rust/src/nfs/nfs2_records.rs +++ b/rust/src/nfs/nfs2_records.rs @@ -79,7 +79,7 @@ named!(pub parse_nfs2_reply_read, status: be_u32 >> attr_blob: take!(68) >> data_len: be_u32 - >> data_contents: rest + >> data_contents: take!(data_len) >> ( NfsReplyRead { status,