summaryrefslogtreecommitdiff
path: root/ares_cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares_cancel.c')
-rw-r--r--ares_cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_cancel.c b/ares_cancel.c
index 982ebc1..63b1514 100644
--- a/ares_cancel.c
+++ b/ares_cancel.c
@@ -36,7 +36,7 @@ void ares_cancel(ares_channel channel)
{
query = list_node->data;
list_node = list_node->next; /* since we're deleting the query */
- query->callback(query->arg, ARES_ETIMEOUT, 0, NULL, 0);
+ query->callback(query->arg, ARES_ECANCELLED, 0, NULL, 0);
ares__free_query(query);
}
#ifndef NDEBUG