]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Correctly check the result of make_concat (thanks to Scott Reynolds).
authorTed Lemon <source@isc.org>
Thu, 8 Jun 2000 21:20:00 +0000 (21:20 +0000)
committerTed Lemon <source@isc.org>
Thu, 8 Jun 2000 21:20:00 +0000 (21:20 +0000)
  This fixes a long-standing 3.0 problem where more than one fixed
  address declaration in a host declaration would not be honored.

server/confpars.c

index 394e761fccc426e6634e408ce14978be61c81e48..9580718dcda390b69b39d431b46559e9d558bc08 100644 (file)
@@ -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