X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.c;h=956607caaeb0c49ef72db81ad287f8483f787536;hb=027228debee2ea6f31cd176e456c13d626380066;hp=7fbb0fc03a177ebc1823b0cc0afdf12653f56a0a;hpb=4d440336c3ce68719e23b2fc51fac368e23352ad;p=meshlink diff --git a/src/connection.c b/src/connection.c index 7fbb0fc0..956607ca 100644 --- a/src/connection.c +++ b/src/connection.c @@ -27,8 +27,6 @@ #include "control_common.h" #include "list.h" #include "logger.h" -#include "net.h" /* Don't ask. */ -#include "netutl.h" #include "subnet.h" #include "utils.h" #include "xalloc.h" @@ -67,7 +65,12 @@ void free_connection(connection_t *c) { free(c->hostname); cipher_close(&c->incipher); + digest_close(&c->indigest); cipher_close(&c->outcipher); + digest_close(&c->outdigest); + + ecdsa_free(&c->ecdsa); + rsa_free(&c->rsa); if(c->hischallenge) free(c->hischallenge);