From acb0311b113e3729dd1ac78dd14c51dc2c010393 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 16 Mar 2000 06:51:04 +0000 Subject: [PATCH] dns_message_renderreset should cause the message to forget the render buffer. --- lib/dns/message.c | 2 ++ 1 file changed, 2 insertions(+) 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;