2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Clear up an omission in the host group writing code.

This commit is contained in:
Ted Lemon
1999-10-04 23:19:36 +00:00
parent bb27c66f90
commit d70e89d47b

View File

@@ -22,7 +22,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: db.c,v 1.30 1999/10/01 03:24:59 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; "$Id: db.c,v 1.31 1999/10/04 23:19:36 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -312,8 +312,9 @@ int write_host (host)
} }
} }
if (host -> named_group && if (host -> group &&
host -> group != host -> named_group -> group) { (!host -> named_group ||
host -> group != host -> named_group -> group)) {
errno = 0; errno = 0;
write_statements (db_file, write_statements (db_file,
host -> group -> statements, 8); host -> group -> statements, 8);