X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=crypto%2Falgif_hash.c;h=0262210cad386bde9b75f45d823c730920a54756;hp=ef5356cd280a54c086e4f8ff964245e38748a391;hb=419f4ba0f032c8d906153d24e017f4bee6df26f5;hpb=4167ab90ee6a2c029855db53d1631c84a213f3d1 diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c index ef5356cd280a..0262210cad38 100644 --- a/crypto/algif_hash.c +++ b/crypto/algif_hash.c @@ -161,6 +161,8 @@ static int hash_recvmsg(struct kiocb *unused, struct socket *sock, else if (len < ds) msg->msg_flags |= MSG_TRUNC; + msg->msg_namelen = 0; + lock_sock(sk); if (ctx->more) { ctx->more = 0;