]> 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)
commit471ceeace8218adb48a986f25663242f61b00457
treecd6994c430daaaa1e39e37c0c8696e61b281e62d
parentea9146639f39ee93ba645fc74dc971fb0caecd6b
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