- Bug #2218480 (http://curl.haxx.se/bug/view.cgi?id=2218480) pointed out a
problem with my CURLINFO_PRIMARY_IP fix from October 7th that caused a NULL pointer read. I also took the opportunity to clean up this logic (storing of the connection's IP address) somewhat as we had it stored in two different places and ways previously and they are now unified.
This commit is contained in:
@@ -908,11 +908,10 @@ struct connectdata {
|
||||
cache entry remains locked. It gets unlocked in Curl_done() */
|
||||
Curl_addrinfo *ip_addr;
|
||||
|
||||
/* 'ip_addr_str' is the ip_addr data as a human readable malloc()ed string.
|
||||
/* 'ip_addr_str' is the ip_addr data as a human readable string.
|
||||
It remains available as long as the connection does, which is longer than
|
||||
the ip_addr itself. Set with Curl_store_ip_addr() when ip_addr has been
|
||||
set. */
|
||||
char *ip_addr_str;
|
||||
the ip_addr itself. */
|
||||
char ip_addr_str[MAX_IPADR_LEN];
|
||||
|
||||
unsigned int scope; /* address scope for IPv6 */
|
||||
|
||||
|
Reference in New Issue
Block a user