1
0

fix wrong header unmarshaling buffer length

This commit is contained in:
EAimTY 2023-04-05 18:28:33 +09:00
parent 525053a3cc
commit 77ac89c5ba

View File

@ -174,7 +174,7 @@ impl Authenticate {
#[cfg(feature = "marshal")]
fn read(s: &mut impl Read) -> Result<Self, UnmarshalError> {
let mut buf = [0; 32];
let mut buf = [0; 48];
s.read_exact(&mut buf)?;
let uuid = Uuid::from_slice(&buf[..16])?;
let token = TryFrom::try_from(&buf[16..]).unwrap();