X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnode.c;fp=src%2Fnode.c;h=01173f8380617807aa5d8f279ff31cf8b4fb2aca;hb=1e3d251b5c65e49a1d4ed89d4154a1837ddd4f08;hp=ce5a5a244d878fdb4a0b59a013dc25b23e9b75df;hpb=22b4cde7698b0d6c45bad752b1ab9acb5a68329b;p=meshlink-tiny diff --git a/src/node.c b/src/node.c index ce5a5a2..01173f8 100644 --- a/src/node.c +++ b/src/node.c @@ -43,8 +43,6 @@ void exit_nodes(meshlink_handle_t *mesh) { node_t *new_node(void) { node_t *n = xzalloc(sizeof(*n)); - n->mtu = MTU; - n->maxmtu = MTU; n->devclass = DEV_CLASS_UNKNOWN; return n; @@ -58,10 +56,6 @@ void free_node(node_t *n) { ecdsa_free(n->ecdsa); sptps_stop(&n->sptps); - if(n->mtutimeout.cb) { - abort(); - } - free(n->name); free(n->canonical_address); @@ -84,7 +78,6 @@ void node_del(meshlink_handle_t *mesh, node_t *n) { } assert(mesh->peer && mesh->peer == n); - timeout_del(&mesh->loop, &n->mtutimeout); free_node(n); mesh->peer = NULL; }