diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-04-23 14:51:03 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-04-25 15:34:28 +0200 |
commit | f098c7abdad52b390c26da94a46c58d3dab1b833 (patch) | |
tree | d2257e1c24a0b7e61c6f44148108c003ca777be2 /src | |
parent | edf1367e62fceddd09e31feef3898c83406e0fda (diff) |
ranap_msg_factory: fix RAB IP addr byte order for use_x213_nsap==false
Diffstat (limited to 'src')
-rw-r--r-- | src/ranap_msg_factory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranap_msg_factory.c b/src/ranap_msg_factory.c index 0292442..1305bc2 100644 --- a/src/ranap_msg_factory.c +++ b/src/ranap_msg_factory.c @@ -629,7 +629,7 @@ static void new_transp_layer_addr(BIT_STRING_t *out, uint32_t ip, bool use_x213_ } else { len = 4; buf = CALLOC(len, sizeof(uint8_t)); - *(uint32_t *)buf = ip; + *(uint32_t *)buf = ntohl(ip); } out->buf = buf; out->size = len; |