mirror of
https://github.com/curl/curl.git
synced 2026-04-29 17:32:12 +03: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
1 changed files with 4 additions and 0 deletions
|
|
@ -3444,6 +3444,10 @@ ConnectionExists(struct SessionHandle *data,
|
||||||
|
|
||||||
/* Same for Proxy NTLM authentication */
|
/* Same for Proxy NTLM authentication */
|
||||||
if(wantProxyNTLMhttp) {
|
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) ||
|
if(!strequal(needle->proxyuser, check->proxyuser) ||
|
||||||
!strequal(needle->proxypasswd, check->proxypasswd))
|
!strequal(needle->proxypasswd, check->proxypasswd))
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue