diff --git a/lib/dns/message.c b/lib/dns/message.c index d1917b30e2..c00d54bffd 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -3839,8 +3839,6 @@ dns_message_pseudosectiontoyaml(dns_message_t *msg, dns_pseudosection_t section, id = isc_buffer_getuint16(&optbuf); snprintf(buf, sizeof(buf), " %u\n", id); ADD_STRING(target, buf); - optlen -= 2; - POST(optlen); continue; } } else if (optcode == DNS_OPT_SERVER_TAG) { @@ -3851,8 +3849,6 @@ dns_message_pseudosectiontoyaml(dns_message_t *msg, dns_pseudosection_t section, id = isc_buffer_getuint16(&optbuf); snprintf(buf, sizeof(buf), " %u\n", id); ADD_STRING(target, buf); - optlen -= 2; - POST(optlen); continue; } } else { @@ -4231,8 +4227,6 @@ dns_message_pseudosectiontotext(dns_message_t *msg, dns_pseudosection_t section, id = isc_buffer_getuint16(&optbuf); snprintf(buf, sizeof(buf), " %u\n", id); ADD_STRING(target, buf); - optlen -= 2; - POST(optlen); continue; } } else if (optcode == DNS_OPT_SERVER_TAG) { @@ -4242,8 +4236,6 @@ dns_message_pseudosectiontotext(dns_message_t *msg, dns_pseudosection_t section, id = isc_buffer_getuint16(&optbuf); snprintf(buf, sizeof(buf), " %u\n", id); ADD_STRING(target, buf); - optlen -= 2; - POST(optlen); continue; } } else {