Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322039
b: refs/heads/master
c: f22eb25
h: refs/heads/master
i:
  322037: 22fa7ab
  322035: 4265abc
  322031: 8d524e0
v: v3
  • Loading branch information
Patrick McHardy authored and Pablo Neira Ayuso committed Aug 10, 2012
1 parent 7371c10 commit 71fb3df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 02b69cbdc2fb2e1bfbfd9ac0c246d7be1b08d3cd
refs/heads/master: f22eb25cf5b1157b29ef88c793b71972efc47143
5 changes: 3 additions & 2 deletions trunk/net/ipv4/netfilter/nf_nat_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static unsigned int ip_nat_sip(struct sk_buff *skb, unsigned int dataoff,
if (ct_sip_parse_header_uri(ct, *dptr, NULL, *datalen,
hdr, NULL, &matchoff, &matchlen,
&addr, &port) > 0) {
unsigned int matchend, poff, plen, buflen, n;
unsigned int olen, matchend, poff, plen, buflen, n;
char buffer[sizeof("nnn.nnn.nnn.nnn:nnnnn")];

/* We're only interested in headers related to this
Expand All @@ -163,11 +163,12 @@ static unsigned int ip_nat_sip(struct sk_buff *skb, unsigned int dataoff,
goto next;
}

olen = *datalen;
if (!map_addr(skb, dataoff, dptr, datalen, matchoff, matchlen,
&addr, port))
return NF_DROP;

matchend = matchoff + matchlen;
matchend = matchoff + matchlen + *datalen - olen;

/* The maddr= parameter (RFC 2361) specifies where to send
* the reply. */
Expand Down

0 comments on commit 71fb3df

Please sign in to comment.