mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
crypto: af_alg - Make sure sk_security is initialized on accept()ed sockets
Signed-off-by: Miloslav Trmač <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
1 parent
6f107b5861
commit
507cad355f
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user