]> git.meshlink.io Git - meshlink/commitdiff
meshlink_export: correctly export the mutex
authorSaverio Proto <zioproto@gmail.com>
Thu, 21 Aug 2014 16:51:37 +0000 (18:51 +0200)
committerSaverio Proto <zioproto@gmail.com>
Thu, 21 Aug 2014 16:51:37 +0000 (18:51 +0200)
src/meshlink.c

index 21024f1a7326625616b0a13cc878d74452d3baf5..ddaa740b88a4b7fd501b02e2f95e7e105260e403 100644 (file)
@@ -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;
 }