From 74750fe2b0c19fdd4c9cf6524c89c13d985d024e Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 9 Oct 2020 01:21:13 +0700 Subject: oml: fix handling of NSVC local port in oml_ipa_mo_set_attr_nsvc() This is another regresion introduced by [1]. Both local and remote port numbers recived in the network order, and must be stored as-is. Change-Id: I3c21a2c27dcbf6de728ce2c7ccbae9e2f517c450 Fixes: I310699fabbfec4255f0474f31717f215c1201eca Related: SYS#4915 --- src/common/oml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/oml.c b/src/common/oml.c index 5394e8a4..2a87b031 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -1272,7 +1272,7 @@ static int oml_ipa_mo_set_attr_nsvc(struct gsm_bts_gprs_nsvc *nsvc, nsvc->remote.u.sin.sin_addr.s_addr = _cur_l; cur += 4; memcpy(&_cur_s, cur, 2); - nsvc->local.u.sin.sin_port = ntohs(_cur_s); + nsvc->local.u.sin.sin_port = _cur_s; } if (TLVP_PRES_LEN(tp, NM_ATT_OSMO_NS_LINK_CFG, 10)) { -- cgit v1.2.3