1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Convert endian of serial in SerialNotify RTR PDU. (#60)

Thanks to Massimiliano Stucchi.
This commit is contained in:
Martin Hoffmann
2019-01-31 17:24:27 +01:00
committed by GitHub
parent 5f6d1cd24d
commit 6d50276b91
2 changed files with 6 additions and 1 deletions

View File

@ -8,8 +8,13 @@ New
Bug Fixes
* Converts the endianess of the serial number in the SerialNotify RTR PDU.
Reported by Massimiliano Stucchi. [(#60)]
Dependencies
[(#60)]: https://github.com/NLnetLabs/routinator/pull/60
## 0.2.1 Rated R

View File

@ -77,7 +77,7 @@ impl SerialNotify {
pub fn new(version: u8, session: u16, serial: u32) -> Self {
SerialNotify {
header: Header::new(version, Self::PDU, session, Self::LEN),
serial
serial: serial.to_be(),
}
}
}