From: Ted Lemon Date: Thu, 19 Nov 1998 20:56:36 +0000 (+0000) Subject: Don't use oc if it's null X-Git-Tag: V2-BETA-1-PATCH-7~19^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16cadc50d5950144c2cbc7cf57452f629f67694c;p=thirdparty%2Fdhcp.git Don't use oc if it's null --- 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,