浏览代码

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>
Miloslav Trmač 14 年之前
父节点
当前提交
507cad355f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      crypto/af_alg.c

+ 1 - 0
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) {