Skip to contentSkip to conversation

Make sure sk_security is initialized on accept()ed sockets

PATCH In review Miloslav Trmač 2 participants 2 messages Dec 3, 2010 – Dec 8, 2010 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make sure sk_security is initialized on accept()ed sockets

---
 crypto/af_alg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
crypto/af_alg.c +1 -0
index cabed0e..bd9e53c 100644
@@ -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) {
Signature · 1 line
1.7.3.2