aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns/resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/librdns/resolver.c')
-rw-r--r--contrib/librdns/resolver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c
index ca93d7872..7fa61a391 100644
--- a/contrib/librdns/resolver.c
+++ b/contrib/librdns/resolver.c
@@ -402,6 +402,8 @@ rdns_process_timer (void *arg)
if (!renew) {
req->async->del_timer (req->async->data,
req->async_event);
+ req->async_event = NULL;
+ HASH_DEL (req->io->requests, req);
}
/* We have not scheduled timeout actually due to send error */
@@ -480,6 +482,7 @@ rdns_process_retransmit (int fd, void *arg)
resolver->async->del_write (resolver->async->data,
req->async_event);
+ req->async_event = NULL;
r = rdns_send_request (req, fd, false);