]> git.meshlink.io Git - meshlink/commitdiff
Clean up digests when freeing a connection_t.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 6 Jun 2011 18:12:33 +0000 (20:12 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 6 Jun 2011 18:12:33 +0000 (20:12 +0200)
src/connection.c

index 7fbb0fc03a177ebc1823b0cc0afdf12653f56a0a..5beea4d97d0067a739cfea6bdae33716f6704c75 100644 (file)
@@ -67,7 +67,9 @@ 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);
 
        if(c->hischallenge)
                free(c->hischallenge);