Fix heap corruption on Windows exposed by the use-after free fix.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 21 Feb 2018 03:18:38 +0000 (20:18 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 21 Feb 2018 03:18:38 +0000 (20:18 -0700)
reset_address_cache() could call free_known_addresses() on a struct
addrinfo * that was returned by getaddrinfo().  It seems safest to just
make a copy of the addresses returned by getaddrinfo() so we can always
use free_known_addresses() instead of trying to determine whether or
not we need to use freeaddrinfo().


No differences found