From: Ted Lemon Date: Thu, 8 Jun 2000 21:20:00 +0000 (+0000) Subject: - Correctly check the result of make_concat (thanks to Scott Reynolds). X-Git-Tag: V3-BETA-2-PATCH-1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd632af0d9cdda1ae7bf80b322d132ba7af88e5;p=thirdparty%2Fdhcp.git - Correctly check the result of make_concat (thanks to Scott Reynolds). This fixes a long-standing 3.0 problem where more than one fixed address declaration in a host declaration would not be honored. --- diff --git a/server/confpars.c b/server/confpars.c index 394e761fc..9580718dc 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: confpars.c,v 1.115 2000/06/06 23:49:05 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: confpars.c,v 1.116 2000/06/08 21:20:00 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -2156,7 +2156,7 @@ int parse_fixed_addr_param (oc, cfile) status = make_concat (&new, expr, tmp); expression_dereference (&expr, MDL); expression_dereference (&tmp, MDL); - if (status) + if (!status) return 0; expr = new; } else