Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58973
b: refs/heads/master
c: f4a607b
h: refs/heads/master
i:
  58971: 6a89004
v: v3
  • Loading branch information
Jerome Borsboom authored and David S. Miller committed Jul 11, 2007
1 parent 2fadd17 commit 8a47642
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c4e36bc172ae1accde835b880fdc4a2c2a3df57
refs/heads/master: f4a607bfae30d15aad46e75d2ed7a39f7ce7708b
6 changes: 5 additions & 1 deletion trunk/net/ipv4/netfilter/nf_nat_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ static unsigned int ip_nat_sdp(struct sk_buff **pskb,
DEBUGP("ip_nat_sdp():\n");

/* Connection will come from reply */
newip = ct->tuplehash[!dir].tuple.dst.u3.ip;
if (ct->tuplehash[dir].tuple.src.u3.ip ==
ct->tuplehash[!dir].tuple.dst.u3.ip)
newip = exp->tuple.dst.u3.ip;
else
newip = ct->tuplehash[!dir].tuple.dst.u3.ip;

exp->saved_ip = exp->tuple.dst.u3.ip;
exp->tuple.dst.u3.ip = newip;
Expand Down

0 comments on commit 8a47642

Please sign in to comment.