Clean up digests when freeing a connection_t.

This commit is contained in:
Guus Sliepen 2011-06-06 20:12:33 +02:00
parent 8b3cc695b5
commit 601f3b2dd7

View 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);