]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit34e6359db1028d77a9fb3e26034605ec0cfc5571
treed1e681c9404a7ce9ab24f14d198b44b316043f6d
parent07733e85745702bc71ba81d785ff0a46cd63b8e7
[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