mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
NTLM: check for NULL pointer before deferencing
At ConnectionExists, both check->proxyuser and check->proxypasswd could be NULL, so make sure to check first. Fixes #765
This commit is contained in:
parent
4fbd576930
commit
fa5fa65a30
@ -3444,6 +3444,10 @@ ConnectionExists(struct SessionHandle *data,
|
||||
|
||||
/* Same for Proxy NTLM authentication */
|
||||
if(wantProxyNTLMhttp) {
|
||||
/* Both check->proxyuser and check->proxypasswd could be NULL */
|
||||
if(check->proxyuser == NULL || check->proxypasswd == NULL)
|
||||
continue;
|
||||
|
||||
if(!strequal(needle->proxyuser, check->proxyuser) ||
|
||||
!strequal(needle->proxypasswd, check->proxypasswd))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user