Cache test.

git-svn-id: file:///svn/unbound/trunk@197 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-03-26 15:01:11 +00:00
parent 0280e3446a
commit 157defb03f
3 changed files with 65 additions and 3 deletions
+7 -3
View File
@@ -280,7 +280,7 @@ static void
answer_check_it(struct replay_runtime* runtime)
{
struct replay_answer* ans = runtime->answer_list,
**prev = &runtime->answer_list;
*prev = NULL;
log_assert(runtime && runtime->now &&
runtime->now->evt_type == repevt_front_reply);
while(ans) {
@@ -294,12 +294,16 @@ answer_check_it(struct replay_runtime* runtime)
log_info("testbound: do STEP %d %s",
runtime->now->time_step,
repevt_string(runtime->now->evt_type));
*prev = ans->next;
if(prev)
prev->next = ans->next;
else runtime->answer_list = ans->next;
if(!ans->next)
runtime->answer_last = prev;
delete_replay_answer(ans);
ans = n;
return;
} else {
prev = &ans->next;
prev = ans;
ans = ans->next;
}
}