rspro_util: We don't deal with network byte order, asn1c takes care of that

Change-Id: I12523c748298a23c23bba81acc97e5f6d346dbef
This commit is contained in:
Harald Welte 2019-03-30 19:16:30 +01:00
parent 0a64da6e2d
commit 697141223e
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ static void fill_ip4_port(IpPort_t *out, uint32_t ip, uint16_t port)
uint32_t ip_n = htonl(ip);
out->ip.present = IpAddress_PR_ipv4;
OCTET_STRING_fromBuf(&out->ip.choice.ipv4, (const char *) &ip_n, 4);
out->port = htons(port);
out->port = port;
}