aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-03-30 19:16:30 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-30 19:16:30 +0100
commit697141223ea17dbc20c79606a94656f4a8c7d8d2 (patch)
tree9e72780ed1bfea98b5cd245432c5693df486590f
parent0a64da6e2d5cd2dbbcbc4dfe38e3abac09babeb2 (diff)
rspro_util: We don't deal with network byte order, asn1c takes care of that
-rw-r--r--src/rspro_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspro_util.c b/src/rspro_util.c
index b3c769f..725b56f 100644
--- a/src/rspro_util.c
+++ b/src/rspro_util.c
@@ -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;
}