]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix up handling of hostname
authorTed Lemon <source@isc.org>
Mon, 27 Oct 1997 20:16:26 +0000 (20:16 +0000)
committerTed Lemon <source@isc.org>
Mon, 27 Oct 1997 20:16:26 +0000 (20:16 +0000)
server/db.c

index e7757676428ce5e01826f70afef2ad754eb2e5a4..f3b921d22a58222759f7f437dbd383edbc7ebe79 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: db.c,v 1.14 1997/10/07 19:59:31 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: db.c,v 1.15 1997/10/27 20:16:26 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -144,7 +144,7 @@ int write_lease (lease)
        if (lease -> hostname) {
                errno = 0;
                fprintf (db_file, "\n\thostname \"%s\";",
-                        lease -> client_hostname);
+                        lease -> hostname);
                if (errno) {
                        ++errors;
                }