From 0a81750b70ecca975e4b8d532111a572576abcff Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Thu, 21 Aug 2014 18:51:37 +0200 Subject: [PATCH] meshlink_export: correctly export the mutex --- src/meshlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink.c b/src/meshlink.c index 21024f1a..ddaa740b 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -1712,7 +1712,7 @@ char *meshlink_export(meshlink_handle_t *mesh) { fclose(f); buf[len - 1] = 0; - pthread_mutex_lock(&(mesh->mesh_mutex)); + pthread_mutex_unlock(&(mesh->mesh_mutex)); return buf; } -- 2.39.2