* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dighost.c,v 1.221 2001/08/08 22:54:14 gson Exp $ */
+/* $Id: dighost.c,v 1.221.2.1 2001/09/12 00:15:11 gson Exp $ */
/*
* Notice to programmers: Do not use this code as an example of how to
if (lookup->sendspace != NULL)
isc_mempool_put(commctx, lookup->sendspace);
+ if (lookup->tsigctx != NULL)
+ dst_context_destroy(&lookup->tsigctx);
+
isc_mem_free(mctx, lookup);
return (ISC_TRUE);
}
result = dns_message_settsigkey(msg, key);
check_result(result, "dns_message_settsigkey");
msg->tsigctx = l->tsigctx;
+ l->tsigctx = NULL;
if (l->msgcounter != 0)
msg->tcp_continuation = 1;
l->msgcounter++;
validated = ISC_FALSE;
}
l->tsigctx = msg->tsigctx;
+ msg->tsigctx = NULL;
if (l->querysig != NULL) {
debug("freeing querysig buffer %p", l->querysig);
isc_buffer_free(&l->querysig);