Remove dead code in dns_message_sectiontotext

Following the merge of !10302 this code to reset the result code
on ISC_R_NOMORE is no longer needed.
This commit is contained in:
Mark Andrews 2025-03-31 10:36:45 +11:00
parent cbffddcdb9
commit 31968a7534

View file

@ -3347,9 +3347,6 @@ dns_message_sectiontotext(dns_message_t *msg, dns_section_t section,
INDENT(style);
ADD_STRING(target, "\n");
}
if (result == ISC_R_NOMORE) {
result = ISC_R_SUCCESS;
}
cleanup:
msg->indent.count = saved_count;