Fixed bug when connecting to IMAP with default authenticator.

This commit is contained in:
Vincent Richard 2005-12-02 12:25:58 +00:00
parent 965aa0d083
commit da6cd30611
2 changed files with 3 additions and 3 deletions

View File

@ -191,7 +191,7 @@ void IMAPConnection::connect()
void IMAPConnection::authenticate()
{
getAuthenticator()->setService(thisRef().dynamicCast <service>());
getAuthenticator()->setService(m_store.toStrong());
#if VMIME_HAVE_SASL_SUPPORT
// First, try SASL authentication

View File

@ -44,7 +44,7 @@ defaultAuthenticator::~defaultAuthenticator()
const string defaultAuthenticator::getUsername() const
{
const string& prefix = m_service->getInfos().getPropertyPrefix();
const string prefix = m_service->getInfos().getPropertyPrefix();
const propertySet& props = m_service->getSession()->getProperties();
if (props.hasProperty(prefix + net::serviceInfos::property::AUTH_USERNAME.getName()))
@ -56,7 +56,7 @@ const string defaultAuthenticator::getUsername() const
const string defaultAuthenticator::getPassword() const
{
const string& prefix = m_service->getInfos().getPropertyPrefix();
const string prefix = m_service->getInfos().getPropertyPrefix();
const propertySet& props = m_service->getSession()->getProperties();
if (props.hasProperty(prefix + net::serviceInfos::property::AUTH_PASSWORD.getName()))