mirror of
https://github.com/curl/curl.git
synced 2026-08-26 14:33:32 +03:00
- 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:
parent
efe2ce3647
commit
d0b8b5a199
5 changed files with 46 additions and 60 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue