From 620857cfdcac5d53c7f8179c69b412f4e2f7001e Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Tue, 14 Sep 1999 22:30:40 +0000 Subject: [PATCH] Part of Bug #13777. Fix a bug whre if you mistyped your password, then hit cancel we would bring up another passwod dialog. you had to hit cancel again before it really canceled. --- mailnews/local/src/nsPop3Protocol.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mailnews/local/src/nsPop3Protocol.cpp b/mailnews/local/src/nsPop3Protocol.cpp index 603eca7d32bc..2a0092558922 100644 --- a/mailnews/local/src/nsPop3Protocol.cpp +++ b/mailnews/local/src/nsPop3Protocol.cpp @@ -2388,13 +2388,12 @@ nsresult nsPop3Protocol::ProcessProtocolState(nsIURI * url, nsIInputStream * aIn net_pop3_password_pending = PR_TRUE; } #endif - nsXPIDLCString apwd; - GetPassword(getter_Copies(apwd)); - const char * cpwd = (const char *) pwd; if (m_username.IsEmpty() || !pwd || !*pwd) { // net_pop3_block = PR_FALSE; - return NS_OK; + m_pop3ConData->next_state = POP3_ERROR_DONE; + m_pop3ConData->pause_for_read = PR_FALSE; + break; } m_pop3ConData->next_state = POP3_START_CONNECT;