]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:28:00 +0000 (09:28 -0700)
commit7ea0513ee0bc8c8e85ade576caaf13a58b2cb55d
tree6873907a8edb14ccb9144669c2473675fd0ad9a4
parent6ebe631c590aa6c5e61ccec9ab1808f99705f9d5
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