ConnectionExists: fix NTLM check for new connection
authorDaniel Stenberg <daniel@haxx.se>
Tue, 7 Jan 2014 08:33:54 +0000 (09:33 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 Jan 2014 08:48:40 +0000 (09:48 +0100)
commit8ae35102c43d8d06572c3a1292eb6e27e663c78d
treef2971e33ed55da4b199bf3c76e362a87dae58b62
parentfc0b4b0d3141f20435bef35338248af077a9ed54
ConnectionExists: fix NTLM check for new connection

When the requested authentication bitmask includes NTLM, we cannot
re-use a connection for another username/password as we then risk
re-using NTLM (connection-based auth).

This has the unfortunate downside that if you include NTLM as a possible
auth, you cannot re-use connections for other usernames/passwords even
if NTLM doesn't end up the auth type used.

Reported-by: Paras S
Patched-by: Paras S
Bug: http://curl.haxx.se/mail/lib-2014-01/0046.html
lib/url.c