fix wrong header unmarshaling buffer length
This commit is contained in:
parent
525053a3cc
commit
77ac89c5ba
@ -174,7 +174,7 @@ impl Authenticate {
|
|||||||
|
|
||||||
#[cfg(feature = "marshal")]
|
#[cfg(feature = "marshal")]
|
||||||
fn read(s: &mut impl Read) -> Result<Self, UnmarshalError> {
|
fn read(s: &mut impl Read) -> Result<Self, UnmarshalError> {
|
||||||
let mut buf = [0; 32];
|
let mut buf = [0; 48];
|
||||||
s.read_exact(&mut buf)?;
|
s.read_exact(&mut buf)?;
|
||||||
let uuid = Uuid::from_slice(&buf[..16])?;
|
let uuid = Uuid::from_slice(&buf[..16])?;
|
||||||
let token = TryFrom::try_from(&buf[16..]).unwrap();
|
let token = TryFrom::try_from(&buf[16..]).unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user