1
0
mirror of https://github.com/sys-fs/tubes synced 2025-02-19 23:13:33 -05:00

Check if SSL is being used before SSL_shutdown

This commit is contained in:
Thomas Mannay 2016-11-25 16:19:39 +00:00 committed by GitHub
parent cc45b1c581
commit ec1b038337

12
tubes.c
View File

@ -203,11 +203,13 @@ main(int argc, char **argv)
close(out);
closelog();
ERR_free_strings();
EVP_cleanup();
SSL_shutdown(ssl);
SSL_free(ssl);
SSL_CTX_free(ctx);
if (use_ssl) {
ERR_free_strings();
EVP_cleanup();
SSL_shutdown(ssl);
SSL_free(ssl);
SSL_CTX_free(ctx);
}
snprintf(buf, 512, "/tmp/%s.in", host);
unlink(buf);