diff --git a/lib/dns/message.c b/lib/dns/message.c index 877eb99d71..7384a168fd 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -1700,6 +1700,8 @@ dns_message_renderreset(dns_message_t *msg) REQUIRE(DNS_MESSAGE_VALID(msg)); REQUIRE(msg->from_to_wire == DNS_MESSAGE_INTENTRENDER); + msg->buffer = NULL; + for (i = 0; i < DNS_SECTION_MAX; i++) { msg->cursors[i] = NULL; msg->counts[i] = 0;