At ConnectionExists, both check->proxyuser and check->proxypasswd
could be NULL, so make sure to check first.
Fixes #765
/* 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;