x3dh: Fix remaining bug thanks to cronokirby's eagle vision.

This commit is contained in:
Luther Blissett
2022-10-28 23:54:52 +02:00
parent 384e9fcc38
commit a68304ca99

View File

@@ -102,7 +102,7 @@ impl MessageHeader {
let mut ret = [0u8; 48];
ret[..32].copy_from_slice(&self.dh.to_bytes());
ret[32..40].copy_from_slice(&self.pn.to_le_bytes());
ret[40..].copy_from_slice(&self.pn.to_le_bytes());
ret[40..].copy_from_slice(&self.n.to_le_bytes());
ret
}