summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whyte <keith@rhizomatica.org>2018-08-28 07:22:30 -0400
committerKeith Whyte <keith@rhizomatica.org>2018-08-28 07:22:30 -0400
commit6fc496eba370c8f557efd5d03066aae4c6935f39 (patch)
tree2ec54f12a8a5a088ad12b7b8a373f11c6c1aba89
parent0cfe4763a456999bac39e657aa0e0e4c6b6d3693 (diff)
Use htonl, not ntohl before inet_ntoa()
-rw-r--r--src/sdp.c2
1 files changed, 1 insertions, 1 deletions
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);