[XFRM]: Prevent off-by-one access to xfrm_dispatch
authorThomas Graf <tgraf@suug.ch>
Tue, 3 May 2005 21:26:01 +0000 (14:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2005 21:26:01 +0000 (14:26 -0700)
commit526bdb80a23b2e10ed4ccc3fcf309c9118d892d6
treed1e681c9404a7ce9ab24f14d198b44b316043f6d
parente4553eddae592b948c9695c9a0002169b0cab6fc
[XFRM]: Prevent off-by-one access to xfrm_dispatch

Makes the type > XFRM_MSG_MAX check behave correctly to
protect access to xfrm_dispatch.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/xfrm.h