rep->code = DNS_RC_SERVFAIL;
upstream_fail (&rep->request->server->up, rep->request->time);
remove_normal_event (req->session, dns_fin_cb, req);
- req->func (rep, req->arg);
dns_check_throttling (req->resolver);
req->resolver->errors ++;
+
+ req->func (rep, req->arg);
+
return;
}
/* Select other server */
rep->request = req;
rep->code = DNS_RC_SERVFAIL;
upstream_fail (&rep->request->server->up, rep->request->time);
- req->func (rep, req->arg);
req->resolver->errors ++;
dns_check_throttling (req->resolver);
+
+ req->func (rep, req->arg);
+
return;
}
r = send_dns_request (req);