From: Ted Lemon Date: Mon, 4 Oct 1999 23:19:36 +0000 (+0000) Subject: Clear up an omission in the host group writing code. X-Git-Tag: V3-BETA-1-PATCH-2~5^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d70e89d47bec92c24c3aa396c8423378251deffa;p=thirdparty%2Fdhcp.git Clear up an omission in the host group writing code. --- diff --git a/server/db.c b/server/db.c index ca073de6e..1fb11db99 100644 --- a/server/db.c +++ b/server/db.c @@ -22,7 +22,7 @@ #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" @@ -312,8 +312,9 @@ int write_host (host) } } - 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);