summaryrefslogtreecommitdiffstats
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-12-08 14:36:19 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2010-12-08 14:36:19 +0800
commit507cad355fc9e426f2846c46a4edca2d22d25f44 (patch)
treebec333322577366fbf9438e2bc83d536adf2bb21 /crypto/af_alg.c
parent6f107b5861ecb09abfa7e2f9927e3884d1d81f91 (diff)
downloadop-kernel-dev-507cad355fc9e426f2846c46a4edca2d22d25f44.zip
op-kernel-dev-507cad355fc9e426f2846c46a4edca2d22d25f44.tar.gz
crypto: af_alg - Make sure sk_security is initialized on accept()ed sockets
Signed-off-by: Miloslav Trmač <mitr@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/af_alg.c')
-rw-r--r--crypto/af_alg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index cabed0e..bd9e53c 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -242,6 +242,7 @@ int af_alg_accept(struct sock *sk, struct socket *newsock)
goto unlock;
sock_init_data(newsock, sk2);
+ sock_graft(sk2, newsock);
err = type->accept(ask->private, sk2);
if (err) {
OpenPOWER on IntegriCloud