summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-05-27 17:47:16 +0000
committerTed Lemon <source@isc.org>1999-05-27 17:47:16 +0000
commitf63a5e37a9227a87d781a5c7bc66b2613fff88a8 (patch)
tree6d6e0d0e8a5da68dbf4f4cb248ba2b7345b97c9c
parentaa6626f12bf48207385c8e8c5bf0e45d876ce47e (diff)
downloadisc-dhcp-f63a5e37a9227a87d781a5c7bc66b2613fff88a8.tar.gz
Fix a minor bug in nested subnet processing.
-rw-r--r--server/confpars.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/confpars.c b/server/confpars.c
index bb75c371..51b52828 100644
--- a/server/confpars.c
+++ b/server/confpars.c
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.45.2.10 1999/04/06 15:18:27 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.45.2.11 1999/05/27 17:47:16 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -773,8 +773,7 @@ void parse_subnet_declaration (cfile, share)
share -> subnets = subnet;
else {
u = (struct subnet *)0;
- for (t = share -> subnets;
- t -> next_sibling; t = t -> next_sibling) {
+ for (t = share -> subnets; t; t = t -> next_sibling) {
if (subnet_inner_than (subnet, t, 0)) {
if (u)
u -> next_sibling = subnet;
@@ -785,7 +784,7 @@ void parse_subnet_declaration (cfile, share)
}
u = t;
}
- t -> next_sibling = subnet;
+ u -> next_sibling = subnet;
}
}