]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:27:19 +0000 (16:27 -0800)
commitb9b6cb97fdaeb909a0dcc96ec344b1037696cb8e
treea47f22a7010b2859960b25f431742be8dd0b297f
parent29104c1d4444d5763d8af4614538a8771ebe8811
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>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
net/ipv4/netfilter/nf_nat_sip.c