From: Saverio Proto Date: Thu, 21 Aug 2014 16:51:37 +0000 (+0200) Subject: meshlink_export: correctly export the mutex X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=0a81750b70ecca975e4b8d532111a572576abcff;p=meshlink meshlink_export: correctly export the mutex --- 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; }