Commit 82ccdff5 authored by Mark Karpilovskij's avatar Mark Karpilovskij

kdig: deinit gnutls session before new init

parent 36bb6216
......@@ -457,6 +457,7 @@ void tls_ctx_close(tls_ctx_t *ctx)
}
gnutls_bye(ctx->session, GNUTLS_SHUT_RDWR);
gnutls_deinit(ctx->session);
}
void tls_ctx_deinit(tls_ctx_t *ctx)
......@@ -465,10 +466,6 @@ void tls_ctx_deinit(tls_ctx_t *ctx)
return;
}
if (ctx->session != NULL) {
gnutls_deinit(ctx->session);
}
if (ctx->credentials != NULL) {
gnutls_certificate_free_credentials(ctx->credentials);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment