diff options
author | Ted Lemon <source@isc.org> | 2000-05-18 20:21:43 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2000-05-18 20:21:43 +0000 |
commit | a79ed92bce98e9f42886228f87bd68a9011b8b3a (patch) | |
tree | b95f8a2f0ca139ef8ac1ca7342c103b9b232b2c4 /server/confpars.c | |
parent | b66a1a728691f6ae6baadc2a49733fb3405a4e79 (diff) | |
download | isc-dhcp-a79ed92bce98e9f42886228f87bd68a9011b8b3a.tar.gz |
Fix a reference problem.
Diffstat (limited to 'server/confpars.c')
-rw-r--r-- | server/confpars.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/server/confpars.c b/server/confpars.c index e547aeb9..8f877346 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: confpars.c,v 1.111 2000/05/17 16:04:23 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: confpars.c,v 1.112 2000/05/18 20:21:43 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -2757,10 +2757,14 @@ void parse_address_range (cfile, group, type, inpool) share, MDL); if (!clone_group (&pool -> group, share -> group, MDL)) log_fatal ("no memory for anon pool group."); + } else { + pool = (struct pool *)0; + pool_reference (&pool, last, MDL); } - - } else + } else { + pool = (struct pool *)0; pool_reference (&pool, inpool, MDL); + } #if defined (FAILOVER_PROTOCOL) if (pool -> failover_peer && dynamic) { |