Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -120,8 +120,11 @@ class Net_DNS2_BitMap
//
// get the type id for the RR
//
$type = @Net_DNS2_Lookups::$rr_types_by_name[$rr];
if (isset($type)) {
$type = null;
if (isset(Net_DNS2_Lookups::$rr_types_by_name[$rr]) == true) {
$type = Net_DNS2_Lookups::$rr_types_by_name[$rr];
//
// skip meta types or qtypes
@ -138,8 +141,12 @@ class Net_DNS2_BitMap
// if it's not found, then it must be defined as TYPE<id>, per
// RFC3845 section 2.2, if it's not, we ignore it.
//
list($name, $type) = explode('TYPE', $rr);
if (!isset($type)) {
list($name, $index) = explode('TYPE', $rr);
if ( (strlen($index) > 0) && (is_numeric($index) == true) ) {
$type = $index;
} else {
continue;
}