]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove dead code in dns_message_sectiontotext
authorMark Andrews <marka@isc.org>
Sun, 30 Mar 2025 23:36:45 +0000 (10:36 +1100)
committerMark Andrews <marka@isc.org>
Mon, 31 Mar 2025 14:37:03 +0000 (14:37 +0000)
Following the merge of !10302 this code to reset the result code
on ISC_R_NOMORE is no longer needed.

lib/dns/message.c

index e9432a9a468bffca1f0ff3831c44789eea232c0b..989b0a3832e25f1622332e8dc3b0f06ff20cb84d 100644 (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;