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>
This commit is contained in:
Zac Bergquist 2024-06-25 20:17:10 -06:00 committed by GitHub
parent 87375cb4d4
commit dfbe947e5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,6 +106,11 @@ impl Processor {
debug!("Got Session Save Info PDU: {session_info:?}");
Ok(Vec::new())
}
// FIXME: workaround fix to not terminate the session on "unhandled PDU: Set Keyboard Indicators PDU"
ShareDataPdu::SetKeyboardIndicators(data) => {
debug!("Got Keyboard Indicators PDU: {data:?}");
Ok(Vec::new())
}
ShareDataPdu::ServerSetErrorInfo(ServerSetErrorInfoPdu(ErrorInfo::ProtocolIndependentCode(
ProtocolIndependentCode::None,
))) => {