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 */
|
/* 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…
Reference in New Issue
Block a user