Fixed a bug in the auth-addl DNS script.

This commit is contained in:
Seth Hall 2011-06-30 21:24:12 -04:00
parent cf527147e7
commit e3f6909b93

View file

@ -6,13 +6,18 @@ redef dns_skip_all_addl = F;
module DNS;
redef record Info += {
auth: set[string] &log &optional;
addl: set[string] &log &optional;
};
export {
redef record Info += {
auth: set[string] &log &optional;
addl: set[string] &log &optional;
};
}
event do_reply(c: connection, msg: dns_msg, ans: dns_answer, reply: string) &priority=4
{
if ( ! c?$dns )
return;
# The "ready" flag will be set here. This causes the setting from the
# base script to be overridden since the base script will log immediately
# after all of the ANS replies have been seen.