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:
parent
cc45b1c581
commit
ec1b038337
12
tubes.c
12
tubes.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user