dns: skip padding record

This commit is contained in:
Nick Peng
2022-11-11 00:22:35 +08:00
parent 9974c50dbb
commit 934701941b
2 changed files with 4 additions and 0 deletions

View File

@@ -1652,6 +1652,9 @@ static int _dns_decode_opt(struct dns_context *context, dns_rr_type type, unsign
return -1;
}
} break;
case DNS_OPT_T_PADDING:
context->ptr += opt_len;
break;
default:
context->ptr += opt_len;
tlog(TLOG_DEBUG, "DNS opt type = %d not supported", opt_code);