diff --git a/src/crypt.c b/src/crypt.c index 607b0d4..df701fd 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -198,5 +198,5 @@ void crypt_session_destroy(crypt_session_t *const s) { sodium_memzero(s->rx, CRYPT_SESS_KEY_LEN); sodium_memzero(s->tx, CRYPT_SESS_KEY_LEN); sodium_memzero(s->nonce, CRYPT_NONCE_LEN); - crypt_key_destroy(s->remote_key); + s->remote_key = NULL; }