From 16cadc50d5950144c2cbc7cf57452f629f67694c Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Thu, 19 Nov 1998 20:56:36 +0000 Subject: [PATCH] Don't use oc if it's null --- server/dhcp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/dhcp.c b/server/dhcp.c index dc84ce7c2..1370f5c64 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcp.c,v 1.72 1998/11/11 08:01:49 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcp.c,v 1.73 1998/11/19 20:56:36 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -267,7 +267,11 @@ void dhcprequest (packet) and it's already been assigned to the client, ack it. */ oc = lookup_option (packet -> options.dhcp_hash, DHO_DHCP_CLIENT_IDENTIFIER); - status = evaluate_option_cache (&data, packet, &packet -> options, oc); + if (oc) + status = evaluate_option_cache (&data, packet, + &packet -> options, oc); + else + status = 0; if (status && lease && ((lease -> uid_len && lease -> uid_len == data.len && !memcmp (data.data, -- 2.47.3