X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconnection.c;h=d137af12f796142d3eeee267cdc5016e82cb6b84;hp=38b3ccfe1b91c675fd5e7783b89474a5c2778c67;hb=b1b5cbc597088393e25d633e76d6456c7572e06c;hpb=4701ce8f18a7785c49848e434b6e26aac89c2942 diff --git a/src/connection.c b/src/connection.c index 38b3ccfe..d137af12 100644 --- a/src/connection.c +++ b/src/connection.c @@ -96,13 +96,13 @@ void free_connection_partially(connection_t *c) { c->outbudget = 0; if(c->inctx) { - EVP_CIPHER_CTX_cleanup(c->inctx); + EVP_CIPHER_CTX_reset(c->inctx); free(c->inctx); c->inctx = NULL; } if(c->outctx) { - EVP_CIPHER_CTX_cleanup(c->outctx); + EVP_CIPHER_CTX_reset(c->outctx); free(c->outctx); c->outctx = NULL; }