the message->cleanup list was being improperly cleaned

This commit is contained in:
Brian Wellington 1999-10-08 14:59:02 +00:00
parent 22fe53a629
commit 069104dd6a

View file

@ -443,7 +443,7 @@ msgreset(dns_message_t *msg, isc_boolean_t everything)
dynbuf = ISC_LIST_HEAD(msg->cleanup);
while (dynbuf != NULL) {
next_dynbuf = ISC_LIST_NEXT(dynbuf, link);
ISC_LIST_UNLINK(msg->scratchpad, dynbuf, link);
ISC_LIST_UNLINK(msg->cleanup, dynbuf, link);
isc_buffer_free(&dynbuf);
dynbuf = next_dynbuf;
}