From ee8a5c01e20740f60be1a87123d6c81ec2c5f8b1 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sat, 4 Aug 2001 07:49:38 +0000 Subject: [PATCH] only call get_key_info() in update_listener() if control != NULL. --- bin/named/controlconf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/named/controlconf.c b/bin/named/controlconf.c index f24a69c4b2..f4a9359358 100644 --- a/bin/named/controlconf.c +++ b/bin/named/controlconf.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: controlconf.c,v 1.25 2001/08/04 07:38:06 marka Exp $ */ +/* $Id: controlconf.c,v 1.26 2001/08/04 07:49:38 marka Exp $ */ #include @@ -881,7 +881,9 @@ update_listener(ns_controls_t *cp, * channel reload, then the response will be with the new key * and not able to be decrypted by the client. */ - get_key_info(config, control, &global_keylist, &control_keylist); + if (control != NULL) + get_key_info(config, control, &global_keylist, + &control_keylist); if (control_keylist != NULL) { INSIST(global_keylist != NULL); -- GitLab