adns_query qu;
const char *p;
- adns__consistency(ads,cc_entex);
+ adns__consistency(ads,0,cc_entex);
typei= adns__findtype(type);
if (!typei) return ENOSYS;
}
query_simple(ads,qu, owner,ol, typei,flags, now);
}
- adns__consistency(ads,cc_entex);
+ adns__consistency(ads,qu,cc_entex);
return 0;
x_adnsfail:
adns__query_fail(qu,stat);
- adns__consistency(ads,cc_entex);
+ adns__consistency(ads,qu,cc_entex);
return 0;
x_errno:
r= errno;
assert(r);
- adns__consistency(ads,cc_entex);
+ adns__consistency(ads,0,cc_entex);
return r;
}
cancel_children(qu);
for (an= qu->allocations.head; an; an= ann) { ann= an->next; free(an); }
+ LIST_INIT(qu->allocations);
adns__vbuf_free(&qu->vb);
}
adns_state ads;
ads= qu->ads;
- adns__consistency(ads,cc_entex);
+ adns__consistency(ads,qu,cc_entex);
switch (qu->state) {
case query_tosend: case query_tcpwait: case query_tcpsent:
LIST_UNLINK(ads->timew,qu);
free_query_allocs(qu);
free(qu->answer);
free(qu);
- adns__consistency(ads,cc_entex);
+ adns__consistency(ads,0,cc_entex);
}
void adns__update_expires(adns_query qu, unsigned long ttl, struct timeval now) {