From 2561da89c09c2c6575b447bee0c370f473eb77a3 Mon Sep 17 00:00:00 2001 From: Pierre Chifflier Date: Mon, 4 Nov 2019 10:22:45 +0100 Subject: [PATCH] rust/rdp: fix regression introduced during nom 5 upgrade --- rust/src/rdp/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/rdp/parser.rs b/rust/src/rdp/parser.rs index 8967996cc8..4dd07cca7f 100644 --- a/rust/src/rdp/parser.rs +++ b/rust/src/rdp/parser.rs @@ -490,7 +490,7 @@ fn parse_x224_connection_request( input: &[u8], ) -> IResult<&[u8], X224ConnectionRequest, RdpError> { let (i1, length) = verify!(input, be_u8, |&x| x != 0xff)?; // 0xff is reserved - let (i2, cr_cdt) = take_4_4_bits(input)?; + let (i2, cr_cdt) = take_4_4_bits(i1)?; let _ = verify!(i1, value!(cr_cdt.0), |&x| x == X224Type::ConnectionRequest as u8)?; let _ = verify!(i1, value!(cr_cdt.1), |&x| x == 0 || x == 1)?;