From 6fc496eba370c8f557efd5d03066aae4c6935f39 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Tue, 28 Aug 2018 07:22:30 -0400 Subject: [PATCH] Use htonl, not ntohl before inet_ntoa() Change-Id: I805864759c287ad4e1d74e5f6ee16bf2d6a1b01f --- src/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdp.c b/src/sdp.c index 213e979..17eb577 100644 --- a/src/sdp.c +++ b/src/sdp.c @@ -165,7 +165,7 @@ bool sdp_extract_sdp(struct sip_call_leg *leg, const sip_t *sip, bool any_codec) char *sdp_create_file(struct sip_call_leg *leg, struct call_leg *other) { - struct in_addr net = { .s_addr = ntohl(other->ip) }; + struct in_addr net = { .s_addr = htonl(other->ip) }; char *fmtp_str = NULL, *sdp; leg->wanted_codec = app_media_name(other->payload_msg_type);