crypto: af_alg - Make sure sk_security is initialized on accept()ed sockets
[pandora-kernel.git] / crypto / af_alg.c
index cabed0e..bd9e53c 100644 (file)
@@ -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) {