From e3533c62b9c58f9eee8d40d95da442f059cafb39 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 28 Oct 1999 23:13:42 +0000 Subject: [PATCH] only add keys from the config file if there are some --- lib/dns/tsig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index 0deeea1b31..c87505f330 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -16,7 +16,7 @@ */ /* - * $Id: tsig.c,v 1.25 1999/10/28 22:05:23 bwelling Exp $ + * $Id: tsig.c,v 1.26 1999/10/28 23:13:42 bwelling Exp $ * Principal Author: Brian Wellington */ @@ -1064,7 +1064,7 @@ dns_tsig_init(dns_c_ctx_t *confctx, isc_mem_t *mctx) { if (ret != ISC_R_SUCCESS) goto failure; - if (confctx != NULL) { + if (confctx != NULL && confctx->keydefs != NULL) { ret = add_initial_keys(confctx, mctx); if (ret != ISC_R_SUCCESS) goto failure;