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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:17:11 +0000 (09:17 -0700)
commit01f66df0b96ac087c782c1890c6827d99776ac2f
treedb2e87e0bf076f803564436adcce0f7d8703c01c
parent4b552154cccd5407bb02a7f17ed5a37939fd821e
netfilter: nf_nat_sip: fix via header translation with multiple parameters

commit f22eb25cf5b1157b29ef88c793b71972efc47143 upstream.

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>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/netfilter/nf_nat_sip.c