From 9af6e1c548ab09bc6ecac1a26fb23fd657e20882 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 8 Jun 2001 18:29:31 +0000 Subject: [PATCH] Don't die when trying to delete a nonexistent key [RT #1392] --- lib/dns/tkey.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c index cafcd0dda8..fea066427b 100644 --- a/lib/dns/tkey.c +++ b/lib/dns/tkey.c @@ -16,7 +16,7 @@ */ /* - * $Id: tkey.c,v 1.68 2001/02/17 02:22:43 bwelling Exp $ + * $Id: tkey.c,v 1.69 2001/06/08 18:29:31 bwelling Exp $ */ #include @@ -489,8 +489,10 @@ process_deletetkey(dns_message_t *msg, dns_name_t *signer, dns_name_t *name, UNUSED(namelist); result = dns_tsigkey_find(&tsigkey, name, &tkeyin->algorithm, ring); - if (result != ISC_R_SUCCESS) + if (result != ISC_R_SUCCESS) { tkeyout->error = dns_tsigerror_badname; + return (ISC_R_SUCCESS); + } /* * Only allow a delete if the identity that created the key is the