#ifndef lint
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 */
#include "dhcpd.h"
}
}
- if (host -> named_group &&
- host -> group != host -> named_group -> group) {
+ if (host -> group &&
+ (!host -> named_group ||
+ host -> group != host -> named_group -> group)) {
errno = 0;
write_statements (db_file,
host -> group -> statements, 8);