X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/b6300f5d76539c4f09df6880a7afdc48fe05505c..c3549f8faebc319135f98dc9db4406df2d402a4f:/src/query.c diff --git a/src/query.c b/src/query.c index 1fa26f8..966f409 100644 --- a/src/query.c +++ b/src/query.c @@ -6,10 +6,10 @@ */ /* * This file is - * Copyright (C) 1997-1999 Ian Jackson + * Copyright (C) 1997-2000 Ian Jackson * * It is part of adns, which is - * Copyright (C) 1997-1999 Ian Jackson + * Copyright (C) 1997-2000 Ian Jackson * Copyright (C) 1999 Tony Finch * * This program is free software; you can redistribute it and/or modify @@ -374,6 +374,7 @@ void adns__transfer_interim(adns_query from, adns_query to, void *block, size_t LIST_UNLINK(from->allocations,an); LIST_LINK_TAIL(to->allocations,an); + sz= MEM_ROUND(sz); from->interim_allocd -= sz; to->interim_allocd += sz; @@ -501,7 +502,6 @@ void adns__query_done(adns_query qu) { adns_answer *ans; adns_query parent; - assert(!qu->ads->bug_if_query_done_now); cancel_children(qu); qu->id= -1; @@ -543,7 +543,6 @@ void adns__query_done(adns_query qu) { } void adns__query_fail(adns_query qu, adns_status stat) { - assert(!qu->ads->bug_if_query_done_now); adns__reset_preserved(qu); qu->answer->status= stat; adns__query_done(qu);