Make sure that the client properly responds unrecognised global and channel requests
Dependencies
- [2]
2WEO7OZLVersion updates: getting rid of anyhow + moving to Tokio 1.0 - [3]
7FRJYUI6Reboot because of a bad change
Change contents
- replacement in thrussh/src/client/encrypted.rs at line 451
info!("Unknown channel request {:?}", std::str::from_utf8(req));let wants_reply = r.read_byte().map_err(crate::Error::from)?;if wants_reply == 1 {if let Some(ref mut enc) = self.common.encrypted {self.common.wants_reply = false;push_packet!(enc.write, {enc.write.push(msg::CHANNEL_FAILURE);enc.write.push_u32_be(channel_num.0)})}}info!("Unknown channel request {:?} {:?}",std::str::from_utf8(req),wants_reply); - replacement in thrussh/src/client/encrypted.rs at line 495
info!("Unhandled global request: {:?}", std::str::from_utf8(req));let wants_reply = r.read_byte().map_err(crate::Error::from)?;if let Some(ref mut enc) = self.common.encrypted {self.common.wants_reply = false;push_packet!(enc.write, enc.write.push(msg::REQUEST_FAILURE))}info!("Unhandled global request: {:?} {:?}",std::str::from_utf8(req),wants_reply);