[NETFILTER]: Fix another crash in ip_nat_pptp
authorPatrick McHardy <kaber@trash.net>
Tue, 10 Jan 2006 00:44:00 +0000 (16:44 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 10 Jan 2006 20:54:32 +0000 (12:54 -0800)
commit03b9feca89366952ae5dfe4ad8107b1ece50b710
tree401e94d15d3f28a759ce716b8b5a742f5d32a520
parent15db34702cfafd24acc60295cf14861e497502ab
[NETFILTER]: Fix another crash in ip_nat_pptp

The PPTP NAT helper calculates the offset at which the packet needs
to be mangled as difference between two pointers to the header. With
non-linear skbs however the pointers may point to two seperate buffers
on the stack and the calculation results in a wrong offset beeing
used.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_nat_helper_pptp.c