ares_query_completed_cb: don't touch invalid data
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jan 2011 12:59:11 +0000 (13:59 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jan 2011 13:41:07 +0000 (14:41 +0100)
commit2d356ba1683d47ebbd08e9d6e4bb4acbb8729fee
tree2bfc17dfefdd387663ea9ee0dc20ab91ee7d148d
parentdc0a7161f868ae2f8094289f45278cc702eafbd9
ares_query_completed_cb: don't touch invalid data

When this callback is called due to the destruction of the ares handle,
the connection pointer passed in as an argument may no longer pointing
to valid data and this function doesn't need to do anything with it
anyway so we make sure it doesn't.

Bug: http://curl.haxx.se/mail/lib-2011-01/0333.html
Reported by: Vsevolod Novikov
lib/hostares.c