* SOFTWARE.
*/
-/* $Id: request.c,v 1.26.2.1 2000/07/21 22:26:16 gson Exp $ */
+/* $Id: request.c,v 1.26.2.2 2000/07/28 05:37:34 gson Exp $ */
#include <config.h>
request->event->ev_sender = task;
request->event->request = request;
request->event->result = ISC_R_FAILURE;
- request->tsigkey = key;
+ if (key != NULL)
+ dns_tsigkey_attach(key, &request->tsigkey);
use_tcp:
if ((options & DNS_REQUESTOPT_TCP) != 0) {
isc_timer_detach(&request->timer);
if (request->tsig != NULL)
isc_buffer_free(&request->tsig);
+ if (request->tsigkey != NULL)
+ dns_tsigkey_detach(&request->tsigkey);
requestmgr_detach(&request->requestmgr);
mctx = request->mctx;
isc_mem_put(mctx, request, sizeof(*request));
* SOFTWARE.
*/
-/* $Id: zone.c,v 1.152.2.2 2000/07/10 22:43:38 gson Exp $ */
+/* $Id: zone.c,v 1.152.2.3 2000/07/28 05:37:31 gson Exp $ */
#include <config.h>
notify->zone->task,
notify_done, notify,
¬ify->request);
+ if (key != NULL)
+ dns_tsigkey_detach(&key);
dns_message_destroy(&message);
cleanup:
if (result != ISC_R_SUCCESS)
dns_result_totext(result));
goto cleanup;
}
+ if (key != NULL)
+ dns_tsigkey_detach(&key);
dns_message_destroy(&message);
isc_event_free(&event);
dns_zone_idetach(&zone);
*/
if (result != ISC_R_SUCCESS)
zone_xfrdone(zone, result);
+
+ if (tsigkey != NULL)
+ dns_tsigkey_detach(&tsigkey);
isc_event_free(&event);