summaryrefslogtreecommitdiff
path: root/ares_gethostbyaddr.3
diff options
context:
space:
mode:
authorAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>2013-04-08 11:48:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-04-08 22:16:48 +0200
commit54faf09da68691a88dbf1936f5969b53af364261 (patch)
tree15b181c46c5fe6ea060b737d070e22b8e388e419 /ares_gethostbyaddr.3
parent127d4cb35798697b8d9a87648dd9af66d4ed9dec (diff)
downloadc-ares-54faf09da68691a88dbf1936f5969b53af364261.tar.gz
c-ares-54faf09da68691a88dbf1936f5969b53af364261.tar.bz2
c-ares-54faf09da68691a88dbf1936f5969b53af364261.zip
ares_cancel(): cancel requests safely
An invocation of ares_cancel() walks through the request list, calling the callbacks of all pending requests on a channel. Previously, if such a callback added a new request to the channel, the request list might not end up empty, causing an abort by assertion failure. The present commit ensures that precisely all requests present upon entry of ares_cancel() are cancelled, and that adding new requests through callbacks is safe.
Diffstat (limited to 'ares_gethostbyaddr.3')
0 files changed, 0 insertions, 0 deletions