]> granicus.if.org Git - curl/commit
c-ares: improve error message on failed resolve
authorDaniel Stenberg <daniel@haxx.se>
Sun, 23 Jun 2013 18:25:38 +0000 (20:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 23 Jun 2013 18:25:38 +0000 (20:25 +0200)
commitad47d8e263939a813683ca6a3662e7745428716c
tree953a21aa485351679db278a58c5503e3065a60d4
parent8a7a277c086199b37c07a8e01165168037866f3e
c-ares: improve error message on failed resolve

When the c-ares based resolver backend failed to resolve a name, it
tried to show the name that failed from existing structs. This caused
the wrong output and shown hostname when for example --interface
[hostname] was used and that name resolving failed.

Now we use the hostname used in the actual resolve attempt in the error
message as well.

Bug: http://curl.haxx.se/bug/view.cgi?id=1191
Reported-by: Kim Vandry
lib/asyn-ares.c