From 2eb9c4150491acfb429d67de1fddd8722d83553e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 3 Nov 2003 23:40:24 +0000 Subject: [PATCH] 1529. [bug] "notify explict;" failed to log that NOTIFY messages were being sent for the zone. [RT# 9442] --- CHANGES | 3 ++- lib/dns/zone.c | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index afc8d0372b..c2832e2f60 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,5 @@ -1529. [placeholder] +1529. [bug] "notify explict;" failed to log that NOTIFY messages + were being sent for the zone. 1528. [cleanup] Simplify some dns_name_ functions based on the deprecation of bitstring labels. diff --git a/lib/dns/zone.c b/lib/dns/zone.c index b21907f558..f892ad8afd 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.400 2003/10/17 03:46:44 marka Exp $ */ +/* $Id: zone.c,v 1.401 2003/11/03 23:40:24 marka Exp $ */ #include @@ -2926,6 +2926,12 @@ zone_notify(dns_zone_t *zone) { UNLOCK_ZONE(zone); return; } + if (!loggednotify) { + notify_log(zone, ISC_LOG_INFO, + "sending notifies (serial %u)", + serial); + loggednotify = ISC_TRUE; + } notify = NULL; } UNLOCK_ZONE(zone);