Change in osmo-sip-connector[master]: Use htonl, not ntohl before inet_ntoa()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Keith Whyte gerrit-no-reply at lists.osmocom.org
Tue Aug 28 11:22:34 UTC 2018


Keith Whyte has uploaded this change for review. ( https://gerrit.osmocom.org/10646


Change subject: Use htonl, not ntohl before inet_ntoa()
......................................................................

Use htonl, not ntohl before inet_ntoa()

Change-Id: I805864759c287ad4e1d74e5f6ee16bf2d6a1b01f
---
M src/sdp.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/46/10646/1

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 @@
 
 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);

-- 
To view, visit https://gerrit.osmocom.org/10646
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I805864759c287ad4e1d74e5f6ee16bf2d6a1b01f
Gerrit-Change-Number: 10646
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Whyte <keith at rhizomatica.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180828/4da69ef1/attachment.htm>


More information about the gerrit-log mailing list