From 7d2440c3f5cbe9bec0bfe162ce9257e067f2ac4d Mon Sep 17 00:00:00 2001 From: the 34c3 gsm team <34c3-gsm@congress> Date: Thu, 28 Dec 2017 00:28:13 +0100 Subject: [PATCH] sdp: remove htonl() from in_addr --- src/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdp.c b/src/sdp.c index ee389b6..6cec248 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 = htonl(other->ip) }; + struct in_addr net = { .s_addr = other->ip }; char *fmtp_str = NULL, *sdp; leg->wanted_codec = app_media_name(other->payload_msg_type);