From: Ted Lemon Date: Fri, 8 Sep 2000 01:34:30 +0000 (+0000) Subject: Don't reference one group on top of another. X-Git-Tag: V3-BETA-2-PATCH-3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72c7d498a203b2e65a0004312b2f2d002b425de7;p=thirdparty%2Fdhcp.git Don't reference one group on top of another. --- diff --git a/server/omapi.c b/server/omapi.c index faf3b3567..f95bb6a55 100644 --- a/server/omapi.c +++ b/server/omapi.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: omapi.c,v 1.34 2000/08/14 21:58:04 neild Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: omapi.c,v 1.35 2000/09/08 01:34:30 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -729,6 +729,8 @@ isc_result_t dhcp_host_set_value (omapi_object_t *h, value -> u.buffer.len, MDL); if (!group || (group -> flags & GROUP_OBJECT_DELETED)) return ISC_R_NOTFOUND; + if (host -> group) + group_dereference (&host -> group, MDL); group_reference (&host -> group, group -> group, MDL); if (host -> named_group) group_object_dereference (&host -> named_group,