]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix truncation length of authentication algorithms installed via PF_KEY
authorMartin Willi <martin@strongswan.org>
Wed, 9 Dec 2009 06:11:15 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Dec 2009 23:07:57 +0000 (15:07 -0800)
commitc7adcb34a5c0c5f46791025a03192d2032378c6a
treee311e92cf7de876e9b8c2b9ab4103d31fde63f18
parentad8fe4c8c13b79813de199e1dc5fc2087308069f
xfrm: Fix truncation length of authentication algorithms installed via PF_KEY

Commit 787675bba5e32e7666b264403b456c2a1d6bd986 ("xfrm: Store aalg in
xfrm_state with a user specified truncation length") breaks
installation of authentication algorithms via PF_KEY, as the state
specific truncation length is not installed with the algorithms
default truncation length.  This patch initializes state properly to
the default if installed via PF_KEY.

Signed-off-by: Martin Willi <martin@strongswan.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c