summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-02-02 20:38:47 +0000
committerTed Lemon <source@isc.org>2000-02-02 20:38:47 +0000
commitadeee5a53d60c65bb7d8360879e3801e09b623b8 (patch)
tree8ae17af1208a4cd2e3d9e67ac5cfbe9b1edc9474 /server
parent9458e9aa074b9dfc14b014adfff3ef2dc971cdaf (diff)
downloadisc-dhcp-adeee5a53d60c65bb7d8360879e3801e09b623b8.tar.gz
Make sure the lease pointer gets set to zero.
Diffstat (limited to 'server')
-rw-r--r--server/dhcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/dhcp.c b/server/dhcp.c
index a18f2b9d..4d8a9642 100644
--- a/server/dhcp.c
+++ b/server/dhcp.c
@@ -22,7 +22,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dhcp.c,v 1.136 2000/01/31 23:43:11 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhcp.c,v 1.137 2000/02/02 20:38:47 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -320,7 +320,8 @@ void dhcprelease (packet)
break;
}
}
- }
+ } else
+ lease = (struct lease *)0;
/* The client is supposed to pass a valid client-identifier,
but the spec on this has changed historically, so try the