mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 20:42:06 -04:00
3674. [bug] RPZ zeroed ttls if the query type was '*'. [RT #35026]
This commit is contained in:
parent
6c91f1fd76
commit
225146b2c8
3 changed files with 8 additions and 0 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
3674. [bug] RPZ zeroed ttls if the query type was '*'. [RT #35026]
|
||||
|
||||
3673. [func] New "in-view" zone option allows direct sharing
|
||||
of zones between views. [RT #32968]
|
||||
|
||||
|
|
|
|||
|
|
@ -4904,6 +4904,7 @@ rpz_rewrite(ns_client_t *client, dns_rdatatype_t qtype, isc_result_t qresult,
|
|||
memset(&st->m, 0, sizeof(st->m));
|
||||
st->m.type = DNS_RPZ_TYPE_BAD;
|
||||
st->m.policy = DNS_RPZ_POLICY_MISS;
|
||||
st->m.ttl = ~0;
|
||||
memset(&st->r, 0, sizeof(st->r));
|
||||
memset(&st->q, 0, sizeof(st->q));
|
||||
dns_fixedname_init(&st->_p_namef);
|
||||
|
|
|
|||
|
|
@ -555,5 +555,10 @@ if test -n "$EMSGS"; then
|
|||
egrep 'invalid rpz|rpz.*failed' ns*/named.run | sed -e '10,$d' -e 's/^/I: /'
|
||||
fi
|
||||
|
||||
echo "I:checking that ttl values are not zeroed when qtype is '*'"
|
||||
$DIG +noall +answer -p 5300 @$ns3 any a3-2.tld2 > dig.out.any
|
||||
ttl=`awk '/a3-2 tld2 text/ {print $2}' dig.out.any`
|
||||
if test ${ttl:=0} -eq 0; then setret I:failed; fi
|
||||
|
||||
echo "I:exit status: $status"
|
||||
exit $status
|
||||
|
|
|
|||
Loading…
Reference in a new issue