From ee3a1ebebf84abaa336df5b7a57547285921f1c7 Mon Sep 17 00:00:00 2001 From: czeidler Date: Tue, 17 Jul 2012 11:28:59 +1200 Subject: [PATCH] Fix possible crash. --- src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp b/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp index 7ad21e7f63..25a391d6ed 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp @@ -112,6 +112,9 @@ POP3Protocol::Connect() status_t POP3Protocol::Disconnect() { + if (fServerConnection == NULL) + return B_OK; + SendCommand("QUIT" CRLF); fServerConnection->Disconnect();