Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/dhcp/server Fix a missing ~ which caused fixed-addr...
details: https://anonhg.NetBSD.org/src/rev/8569d845f17e
branches: trunk
changeset: 485386:8569d845f17e
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Apr 26 23:11:20 2000 +0000
description:
Fix a missing ~ which caused fixed-address leases to be treated like
normal leases, resulting in an eventual NULL-deref in supersede_lease().
Fixes PR #9976.
diffstat:
usr.sbin/dhcp/server/dhcp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r e5166d82a69a -r 8569d845f17e usr.sbin/dhcp/server/dhcp.c
--- a/usr.sbin/dhcp/server/dhcp.c Wed Apr 26 21:17:03 2000 +0000
+++ b/usr.sbin/dhcp/server/dhcp.c Wed Apr 26 23:11:20 2000 +0000
@@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dhcp.c,v 1.11 2000/04/22 08:18:17 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhcp.c,v 1.12 2000/04/26 23:11:20 thorpej Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -1534,7 +1534,7 @@
if (ms_nulltp)
lease -> flags |= MS_NULL_TERMINATION;
else
- lease -> flags &= MS_NULL_TERMINATION;
+ lease -> flags &= ~MS_NULL_TERMINATION;
/* If there are statements to execute when the lease is
committed, execute them. */
Home |
Main Index |
Thread Index |
Old Index