network: fix multi-phased NTLM authentication

tested manually with internal NTLM proxy.

Patch-by: Jonathan Lauvernier <Jonathan.Lauvernier@gmail.com>

Change-Id: Ib3ed7aff12cb8d59ffc2b11ecc1c4fdc04acb368
Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
Peter Hartmann 2013-10-25 10:56:01 +02:00 committed by The Qt Project
parent d5a16e4a3c
commit 338da730e8

View File

@ -189,7 +189,7 @@ QAuthenticator &QAuthenticator::operator=(const QAuthenticator &other)
d->realm = other.d->realm;
d->method = other.d->method;
d->options = other.d->options;
} else {
} else if (d->phase == QAuthenticatorPrivate::Start) {
delete d;
d = 0;
}
@ -267,7 +267,8 @@ void QAuthenticator::detach()
return;
}
d->phase = QAuthenticatorPrivate::Start;
if (d->phase == QAuthenticatorPrivate::Done)
d->phase = QAuthenticatorPrivate::Start;
}
/*!