mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
fix(pdu): Error occurred after refactor(pdu) #541
Fixes commit 7419467ad3 ("refactor(core): move cursor.rs")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
committed by
Benoît Cortier
parent
ba49456236
commit
880d5012e6
@@ -244,7 +244,7 @@ fn read_mcspdu_header(src: &mut ReadCursor<'_>, ctx: &'static str) -> DecodeResu
|
||||
}
|
||||
|
||||
fn peek_mcspdu_header(src: &mut ReadCursor<'_>, ctx: &'static str) -> DecodeResult<DomainMcsPdu> {
|
||||
let choice = src.try_read_u8().map_err(|e| other_err!(ctx, source: e))?;
|
||||
let choice = src.try_peek_u8().map_err(|e| other_err!(ctx, source: e))?;
|
||||
|
||||
DomainMcsPdu::from_choice(choice)
|
||||
.ok_or_else(|| invalid_field_err(ctx, "domain-mcspdu", "unexpected application tag for CHOICE"))
|
||||
|
||||
Reference in New Issue
Block a user