]> granicus.if.org Git - curl/commit
CURLOPT_RESOLVE: avoid adding already present host names
authorDaniel Stenberg <daniel@haxx.se>
Sat, 31 Dec 2011 09:28:10 +0000 (10:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 31 Dec 2011 09:45:27 +0000 (10:45 +0100)
commit5e0a44e4d58855a52b6e0744df4fab09ded3873c
tree92712f9fcec6f6ad95e4f139c35adedd25c1ae98
parent9e3f8c48501920c2c944f7a6eb447849500a3033
CURLOPT_RESOLVE: avoid adding already present host names

The load host names to DNS cache function was moved to hostip.c and it
now makes sure to not add host names that already are present in the
cache. It would previously lead to memory leaks when for example using
the --resolve and multiple URLs on the command line.
lib/hostip.c
lib/hostip.h
lib/transfer.c