[IPSEC]: Fixed alg_key_len usage in attach_one_algo
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 19 May 2005 19:39:04 +0000 (12:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2005 19:39:04 +0000 (12:39 -0700)
commitb9e9dead05b19e7f52c9aa00cd3a5b7ac4fcacf4
tree89852e61eaea7cd88c652e91b594fd8f4c312a9d
parent8be58932ca596972e4953ae980d8bc286857cae8
[IPSEC]: Fixed alg_key_len usage in attach_one_algo

The variable alg_key_len is in bits and not bytes.  The function
attach_one_algo is currently using it as if it were in bytes.
This causes it to read memory which may not be there.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c