summaryrefslogtreecommitdiffstats
path: root/contrib/bind/named/db_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/named/db_load.c')
-rw-r--r--contrib/bind/named/db_load.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/bind/named/db_load.c b/contrib/bind/named/db_load.c
index 6b0a11a..6251f42 100644
--- a/contrib/bind/named/db_load.c
+++ b/contrib/bind/named/db_load.c
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static char sccsid[] = "@(#)db_load.c 4.38 (Berkeley) 3/2/91";
-static char rcsid[] = "$Id: db_load.c,v 8.31 1996/12/18 04:09:48 vixie Exp $";
+static char rcsid[] = "$Id: db_load.c,v 8.32 1997/06/01 20:34:34 vixie Exp $";
#endif /* not lint */
/*
@@ -323,6 +323,13 @@ db_load(filename, in_origin, zp, def_domain)
n = n * 10 + (*cp++ - '0');
}
while (isdigit(*cp));
+ if (*cp != '\0') {
+ errs++;
+ syslog(LOG_INFO,
+ "%s: Line %d: bad TTL: %s.\n",
+ filename, lineno, buf);
+ break;
+ }
if (zp->z_type == Z_CACHE) {
/* this allows the cache entry to age */
/* while sitting on disk (powered off) */
@@ -1988,7 +1995,7 @@ get_netlist(fp, netlistp, allow, print_tag)
char *print_tag;
{
struct netinfo *ntp, **end;
- char buf[BUFSIZ], *maskp;
+ char buf[MAXDNAME], *maskp;
struct in_addr ina;
for (end = netlistp; *end; end = &(**end).next)
OpenPOWER on IntegriCloud