Skip to content

Commit

Permalink
crypto: af_alg - Make sure sk_security is initialized on accept()ed s…
Browse files Browse the repository at this point in the history
…ockets

Signed-off-by: Miloslav Trmač <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
mtrmac authored and herbertx committed Dec 8, 2010
1 parent 6f107b5 commit 507cad3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/af_alg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 507cad3

Please sign in to comment.