2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Don't die when trying to delete a nonexistent key [RT #1392]

This commit is contained in:
Brian Wellington 2001-06-08 18:29:31 +00:00
parent 893612590b
commit 9af6e1c548

View File

@ -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 <config.h> #include <config.h>
@ -489,8 +489,10 @@ process_deletetkey(dns_message_t *msg, dns_name_t *signer, dns_name_t *name,
UNUSED(namelist); UNUSED(namelist);
result = dns_tsigkey_find(&tsigkey, name, &tkeyin->algorithm, ring); result = dns_tsigkey_find(&tsigkey, name, &tkeyin->algorithm, ring);
if (result != ISC_R_SUCCESS) if (result != ISC_R_SUCCESS) {
tkeyout->error = dns_tsigerror_badname; tkeyout->error = dns_tsigerror_badname;
return (ISC_R_SUCCESS);
}
/* /*
* Only allow a delete if the identity that created the key is the * Only allow a delete if the identity that created the key is the