summaryrefslogtreecommitdiffstats
path: root/proxy/src/client/gpm_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src/client/gpm_common.c')
-rw-r--r--proxy/src/client/gpm_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c
index 74296da..4651194 100644
--- a/proxy/src/client/gpm_common.c
+++ b/proxy/src/client/gpm_common.c
@@ -153,6 +153,9 @@ static int gpm_grab_sock(struct gpm_ctx *gpmctx)
ret = gpm_open_socket(gpmctx);
}
+ if (ret) {
+ pthread_mutex_unlock(&gpmctx->lock);
+ }
return ret;
}