summaryrefslogtreecommitdiffstats
path: root/contrib/bind/bin/named/ns_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/bin/named/ns_init.c')
-rw-r--r--contrib/bind/bin/named/ns_init.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/contrib/bind/bin/named/ns_init.c b/contrib/bind/bin/named/ns_init.c
index 553f047..773192b 100644
--- a/contrib/bind/bin/named/ns_init.c
+++ b/contrib/bind/bin/named/ns_init.c
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_init.c 4.38 (Berkeley) 3/21/91";
-static const char rcsid[] = "$Id: ns_init.c,v 8.73 2001/04/20 00:21:40 vixie Exp $";
+static const char rcsid[] = "$Id: ns_init.c,v 8.76 2001/12/19 01:41:51 marka Exp $";
#endif /* not lint */
/*
@@ -294,7 +294,10 @@ do_reload(const char *domain, int type, int class, int mark) {
* Clean up any leftover data.
*/
ns_stopxfrs(zp);
- purge_zone(domain, hashtab, class);
+ if (type == z_hint || (type == z_stub && *domain == 0))
+ purge_zone(domain, fcachetab, class);
+ else
+ purge_zone(domain, hashtab, class);
/*
* Reload
@@ -534,9 +537,9 @@ ns_nameok(const struct qinfo *qry, const char *name, int class,
if (severity == warn)
ok = 1;
if (s != NULL)
- freestr(s);
+ (void)freestr(s);
if (o != NULL)
- freestr(o);
+ (void)freestr(o);
}
return (ok);
}
OpenPOWER on IntegriCloud