ranap_msg_factory: Use network byte order for 16 bit mode_versions field

Instead of 0x0001 the field was 0x0100
This commit is contained in:
Daniel Willmann 2016-01-26 09:37:22 +01:00
parent eac3bf97e8
commit 49f99cd265
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ static RANAP_UserPlaneInformation_t *new_upi(long mode, uint8_t mode_versions)
RANAP_UserPlaneInformation_t *upi = CALLOC(1, sizeof(*upi));
uint16_t *buf = CALLOC(1, sizeof(*buf));
*buf = mode_versions;
*buf = ntohs(mode_versions);
upi->userPlaneMode = mode;
upi->uP_ModeVersions.buf = (uint8_t *) buf;