]> git.meshlink.io Git - meshlink/commitdiff
Finally no more segmentation faults using invitations :)
authorSaverio Proto <zioproto@gmail.com>
Tue, 17 Jun 2014 16:49:59 +0000 (18:49 +0200)
committerSaverio Proto <zioproto@gmail.com>
Tue, 17 Jun 2014 16:49:59 +0000 (18:49 +0200)
src/meshlink.c

index 2e6a37cc3ad1cdb4a8658abd1b06ec2f86eb331e..44ea0b7078b8ecfc567e275fcb332262ff3f5a5b 100644 (file)
@@ -741,6 +741,7 @@ meshlink_handle_t *meshlink_open(const char *confbase, const char *name) {
        mesh->self->connection = new_connection();
        if(!read_ecdsa_private_key(mesh))
                return false;
+       init_nodes(mesh);
        pthread_mutex_init ( &(mesh->outpacketqueue_mutex), NULL);
        pthread_mutex_init ( &(mesh->nodes_mutex), NULL);
        mesh->threadstarted = false;