aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorczeidler <haiku@clemens-zeidler.de>2012-07-17 11:28:59 +1200
committerczeidler <haiku@clemens-zeidler.de>2012-07-17 11:31:45 +1200
commitee3a1ebebf84abaa336df5b7a57547285921f1c7 (patch)
tree7fa47722c959fe521cd43ee617ed8ecd0a483ba3
parent73fc635b3d87970ed7843eacd0ac7a5ffcac0e9b (diff)
Fix possible crash.hrev44348
-rw-r--r--src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp3
1 files changed, 3 insertions, 0 deletions
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();