From: Ted Lemon Date: Mon, 27 Oct 1997 20:22:40 +0000 (+0000) Subject: Fix up handling of hostname X-Git-Tag: DHCP-971122~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56a899315a3d682f4a6cb0ac51d32d08597f1a73;p=thirdparty%2Fdhcp.git Fix up handling of hostname --- diff --git a/server/confpars.c b/server/confpars.c index b863e5cf4..b8487c16f 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$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"; +"$Id: confpars.c,v 1.45 1997/10/27 20:22:40 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1222,7 +1222,12 @@ struct lease *parse_lease_declaration (cfile) case HOSTNAME: seenbit = 512; - lease.hostname = parse_host_name (cfile); + token = peek_token (&val, cfile); + if (token == STRING) + lease.hostname = parse_string (cfile); + else + lease.hostname = + parse_host_name (cfile); if (!lease.hostname) { seenbit = 0; return (struct lease *)0;