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:
parent
d5a16e4a3c
commit
338da730e8
@ -189,7 +189,7 @@ QAuthenticator &QAuthenticator::operator=(const QAuthenticator &other)
|
|||||||
d->realm = other.d->realm;
|
d->realm = other.d->realm;
|
||||||
d->method = other.d->method;
|
d->method = other.d->method;
|
||||||
d->options = other.d->options;
|
d->options = other.d->options;
|
||||||
} else {
|
} else if (d->phase == QAuthenticatorPrivate::Start) {
|
||||||
delete d;
|
delete d;
|
||||||
d = 0;
|
d = 0;
|
||||||
}
|
}
|
||||||
@ -267,7 +267,8 @@ void QAuthenticator::detach()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
d->phase = QAuthenticatorPrivate::Start;
|
if (d->phase == QAuthenticatorPrivate::Done)
|
||||||
|
d->phase = QAuthenticatorPrivate::Start;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user