]> git.meshlink.io Git - meshlink/commitdiff
Fix a double call to pthread_mutex_unlock().
authorGuus Sliepen <guus@meshlink.io>
Mon, 7 Oct 2019 12:23:15 +0000 (14:23 +0200)
committerGuus Sliepen <guus@meshlink.io>
Mon, 7 Oct 2019 12:23:15 +0000 (14:23 +0200)
Found by ThreadSanitizer.

src/discovery.c

index 323d22cfdf433438b51e44692132c46ca2455fb0..6b98a2768f178de342533e2574c060bb55b880a4 100644 (file)
@@ -114,8 +114,6 @@ done:
        free(fingerprint);
        free(txt_name);
        free(txt_fingerprint);
-
-       pthread_mutex_unlock(&(mesh->mesh_mutex));
 }
 
 static void discovery_server_callback(CattaServer *server, CattaServerState state, void *userdata) {