Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bacd0ca8 authored by Ravinder Konka's avatar Ravinder Konka Committed by Gerrit - the friendly Code Review server
Browse files

netfilter: Fix to MT call issue



Changes to store forced port only in the original direction.
This resolves the MT call issue where destination port is
incorrectly translated to forced_port.

Change-Id: I1b1c407c4beb8185ada0b005b1cd1034cb975141
Signed-off-by: default avatarRavinder Konka <rkonka@codeaurora.org>
parent 22772af9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1741,7 +1741,8 @@ static int process_sip_request(struct sk_buff *skb, unsigned int protoff,
				    SIP_HDR_VIA_UDP, NULL, &matchoff,
				    &matchlen, &addr, &port) > 0 &&
	    port != ct->tuplehash[dir].tuple.src.u.udp.port &&
	    nf_inet_addr_cmp(&addr, &ct->tuplehash[dir].tuple.src.u3))
	    nf_inet_addr_cmp(&addr, &ct->tuplehash[dir].tuple.src.u3) &&
		(dir == IP_CT_DIR_ORIGINAL))
		ct_sip_info->forced_dport = port;

	for (i = 0; i < ARRAY_SIZE(sip_handlers); i++) {