From ffba70525e83bcaa36d80c9f77c7b48248923527 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Tue, 10 Jun 1997 06:00:23 +0000 Subject: [PATCH] parse_string eats the semicolon --- server/confpars.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/confpars.c b/server/confpars.c index 9ee5ec10..b863e5cf 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: confpars.c,v 1.43 1997/06/10 05:49:14 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: confpars.c,v 1.44 1997/06/10 06:00:23 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1238,7 +1238,6 @@ struct lease *parse_lease_declaration (cfile) else lease.client_hostname = parse_host_name (cfile); - token = CLIENT_HOSTNAME; break; default: @@ -1247,7 +1246,7 @@ struct lease *parse_lease_declaration (cfile) return (struct lease *)0; } - if (token != HARDWARE) { + if (token != HARDWARE && token != STRING) { token = next_token (&val, cfile); if (token != SEMI) { parse_warn ("semicolon expected.");