From c562aff333bd73a3fe5c15d2969a4ea70300a426 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Wed, 3 Jun 2015 11:18:26 +0200 Subject: p11-kit: Missing unlock in function rpc_socket_read() https://bugs.freedesktop.org/show_bug.cgi?id=90827 --- p11-kit/rpc-transport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/p11-kit/rpc-transport.c b/p11-kit/rpc-transport.c index b3651ad..913e054 100644 --- a/p11-kit/rpc-transport.c +++ b/p11-kit/rpc-transport.c @@ -360,8 +360,10 @@ rpc_socket_read (rpc_socket *sock, p11_mutex_lock (&sock->read_lock); if (!sock->read_creds) { - if (read_all (sock->fd, &dummy, 1) != 1) + if (read_all (sock->fd, &dummy, 1) != 1) { + p11_mutex_unlock (&sock->read_lock); return CKR_DEVICE_ERROR; + } sock->read_creds = true; } -- cgit v1.2.3