Fix IMAP hang on auth failure

This closes Bug 1007
Thanks to Francois Andriot for the patch!
pull/21/head
Timothy Pearson 12 years ago
parent cfa7cb5d34
commit aa2af2573b

@ -277,11 +277,11 @@ imapParser::clientAuthenticate ( KIO::SlaveBase *slave, KIO::AuthInfo &ai,
}
cmd = sendCommand (new imapCommand ("AUTHENTICATE", firstCommand.latin1()));
while ( true )
int pl = 0;
while ( pl != -1 && !cmd->isComplete () )
{
//read the next line
while (parseLoop() == 0) ;
if ( cmd->isComplete() ) break;
while ((pl = parseLoop()) == 0) ;
if (!continuation.isEmpty())
{

Loading…
Cancel
Save