]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98987f690f73251a2dac3a0a4d63446d1ca6ed44
treecd6994c430daaaa1e39e37c0c8696e61b281e62d
parentadfbc05a4ea1a7e5ccea9a0822c1c2b979a46c23
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