diff --git a/src/net/pop3/POP3Connection.cpp b/src/net/pop3/POP3Connection.cpp index 846d31e9..33349749 100644 --- a/src/net/pop3/POP3Connection.cpp +++ b/src/net/pop3/POP3Connection.cpp @@ -212,7 +212,7 @@ void POP3Connection::internalDisconnect() void POP3Connection::authenticate(const messageId& randomMID) { - getAuthenticator()->setService(thisRef().dynamicCast ()); + getAuthenticator()->setService(m_store.acquire()); #if VMIME_HAVE_SASL_SUPPORT // First, try SASL authentication