This *should* squish the SSL bug which would crash the mail daemon on connection timeouts
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19557 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -54,12 +54,19 @@ POP3Protocol::POP3Protocol(BMessage *settings, BMailChainRunner *status)
|
||||
|
||||
POP3Protocol::~POP3Protocol()
|
||||
{
|
||||
#ifdef USESSL
|
||||
if(use_ssl && ssl)
|
||||
SendCommand("QUIT" CRLF);
|
||||
#else
|
||||
SendCommand("QUIT" CRLF);
|
||||
#endif
|
||||
|
||||
#ifdef USESSL
|
||||
if (use_ssl) {
|
||||
SSL_shutdown(ssl);
|
||||
SSL_CTX_free(ctx);
|
||||
if(use_ssl) {
|
||||
if(ssl)
|
||||
SSL_shutdown(ssl);
|
||||
if(ctx)
|
||||
SSL_CTX_free(ctx);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user