conn->proxy.name = conn->proxy.rawalloc;
free(proxydup); /* free the duplicate pointer and not the modified */
+ if(!conn->proxy.rawalloc)
+ return CURLE_OUT_OF_MEMORY;
}
/*************************************************************
conn->user = strdup(CURL_DEFAULT_USER);
conn->passwd = strdup(CURL_DEFAULT_PASSWORD);
-
/* This is the default password, so DON'T set conn->bits.user_passwd */
}
else {
conn->user = strdup(user);
conn->passwd = strdup(passwd);
}
+ if(!conn->user || !conn->passwd)
+ return CURLE_OUT_OF_MEMORY;
/*************************************************************
* Check the current list of connections to see if we can