X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.c;h=1b5bb16693f1e700da422451b1f47017afe2ad5a;hb=35d865a6348cd62d2992bb3d353e37471d902889;hp=2c7cc55a7813b7326d9875e65c9e153a8a373a83;hpb=bc0a24ec810cb911610ae7aafa245e47d1268cd2;p=tinc diff --git a/src/net.c b/src/net.c index 2c7cc55a..1b5bb166 100644 --- a/src/net.c +++ b/src/net.c @@ -121,8 +121,6 @@ void terminate_connection(connection_t *c, bool report) { if(c->socket) closesocket(c->socket); - event_del(&c->ev); - if(c->edge) { if(report && !tunnelserver) send_del_edge(broadcast, c->edge); @@ -146,12 +144,6 @@ void terminate_connection(connection_t *c, bool report) { } } - free(c->outbuf); - c->outbuf = NULL; - c->outbuflen = 0; - c->outbufsize = 0; - c->outbufstart = 0; - /* Check if this was our outgoing connection */ if(c->outgoing)