In the IPv6-aware connect_to(), allocate http->host_ip_addr_str outside the loop...
authorFabian Keil <fk@fabiankeil.de>
Sun, 27 Mar 2011 13:54:52 +0000 (13:54 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 27 Mar 2011 13:54:52 +0000 (13:54 +0000)
commitc88940308665ca4616aa54505e61bddf868ad1f0
tree4620af18a05d5ef34afe8c4964627557271fb92e
parentc2cd3ee0655ce225752874ed70674f28de4a1c45
In the IPv6-aware connect_to(), allocate http->host_ip_addr_str outside the loop and reuse the buffer in case of errors

I think this also fixes an unlikely memory leak, but I haven't actually verified it.
jbsockets.c