Skip to content

Commit dfbe947

Browse files
zmb3CBenoit
andauthored
fix(session): handle the set keyboard indicators PDU (#482)
This message doesn't require a response of any kind, but handling it here will prevent an unknown PDU error which kills the session. Co-authored-by: Benoît Cortier <bcortier@proton.me>
1 parent 87375cb commit dfbe947

File tree

1 file changed

+5
-0
lines changed
  • crates/ironrdp-session/src/x224

1 file changed

+5
-0
lines changed

crates/ironrdp-session/src/x224/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ impl Processor {
106106
debug!("Got Session Save Info PDU: {session_info:?}");
107107
Ok(Vec::new())
108108
}
109+
// FIXME: workaround fix to not terminate the session on "unhandled PDU: Set Keyboard Indicators PDU"
110+
ShareDataPdu::SetKeyboardIndicators(data) => {
111+
debug!("Got Keyboard Indicators PDU: {data:?}");
112+
Ok(Vec::new())
113+
}
109114
ShareDataPdu::ServerSetErrorInfo(ServerSetErrorInfoPdu(ErrorInfo::ProtocolIndependentCode(
110115
ProtocolIndependentCode::None,
111116
))) => {

0 commit comments

Comments
 (0)