mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-02 07:15:44 +00:00
Pulled up rt16929
This commit is contained in:
2
RELNOTES
2
RELNOTES
@@ -59,6 +59,8 @@ suggested fixes to <dhcp-users@isc.org>.
|
|||||||
- A bug was fixed in interface discovery wherein an error identifying
|
- A bug was fixed in interface discovery wherein an error identifying
|
||||||
a server-configured interface with no IPv4 addresses would SEGV.
|
a server-configured interface with no IPv4 addresses would SEGV.
|
||||||
|
|
||||||
|
- Fixed a bug in which write_lease() might report a failure incorrectly
|
||||||
|
|
||||||
Changes since 4.0.0-20070413
|
Changes since 4.0.0-20070413
|
||||||
|
|
||||||
- Old (expired) leases are now cleaned.
|
- Old (expired) leases are now cleaned.
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: db.c,v 1.79 2007/05/29 18:11:56 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
|
"$Id: db.c,v 1.80 2007/06/05 23:28:43 each Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -147,6 +147,7 @@ int write_lease (lease)
|
|||||||
int i;
|
int i;
|
||||||
s = quotify_buf (lease -> uid, lease -> uid_len, MDL);
|
s = quotify_buf (lease -> uid, lease -> uid_len, MDL);
|
||||||
if (s) {
|
if (s) {
|
||||||
|
errno = 0;
|
||||||
fprintf (db_file, "\n uid \"%s\";", s);
|
fprintf (db_file, "\n uid \"%s\";", s);
|
||||||
if (errno)
|
if (errno)
|
||||||
++errors;
|
++errors;
|
||||||
|
Reference in New Issue
Block a user