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.
This commit is contained in:
mscott%netscape.com 1999-09-14 22:30:40 +00:00
parent 67326a38a8
commit 620857cfdc

View File

@ -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;