From 3aec811249fc1bde4476ced9432d3ebea0ad4dc4 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 6 Jun 2000 23:44:13 +0000 Subject: [PATCH] fixed memory leak on TSIG BADSIG --- lib/dns/tsig.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index 9bc85a3988..71846724d3 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -16,7 +16,7 @@ */ /* - * $Id: tsig.c,v 1.70 2000/06/05 20:01:07 bwelling Exp $ + * $Id: tsig.c,v 1.71 2000/06/06 23:44:13 bwelling Exp $ * Principal Author: Brian Wellington */ @@ -766,7 +766,8 @@ dns_tsig_verify(isc_buffer_t *source, dns_message_t *msg, ret = dst_context_verify(ctx, &sig_r); if (ret == DST_R_VERIFYFAILURE) { msg->tsigstatus = dns_tsigerror_badsig; - return (DNS_R_TSIGVERIFYFAILURE); + ret = DNS_R_TSIGVERIFYFAILURE; + goto cleanup_context; } else if (ret != ISC_R_SUCCESS) goto cleanup_context;