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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:50:05 +0000 (03:50 +0100)
commit351f007137c71c376bc7accf97dcaa49bea24a6d
treef4cbc15aa09e740d7deff9920003d79e701ff30d
parent5fd28aca055742a5cf6e02cbac9a29af48386658
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv4/netfilter/nf_nat_sip.c