netfilter: nf_nat_sip: fix via header translation with multiple parameters
authorPatrick McHardy <kaber@trash.net>
Thu, 9 Aug 2012 10:08:47 +0000 (10:08 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 10 Aug 2012 09:53:18 +0000 (11:53 +0200)
commitf22eb25cf5b1157b29ef88c793b71972efc47143
treecd6994c430daaaa1e39e37c0c8696e61b281e62d
parent02b69cbdc2fb2e1bfbfd9ac0c246d7be1b08d3cd
netfilter: nf_nat_sip: fix via header translation with multiple parameters

Via-headers are parsed beginning at the first character after the Via-address.
When the address is translated first and its length decreases, the offset to
start parsing at is incorrect and header parameters might be missed.

Update the offset after translating the Via-address to fix this.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nf_nat_sip.c