]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't use oc if it's null
authorTed Lemon <source@isc.org>
Thu, 19 Nov 1998 20:56:36 +0000 (20:56 +0000)
committerTed Lemon <source@isc.org>
Thu, 19 Nov 1998 20:56:36 +0000 (20:56 +0000)
server/dhcp.c

index dc84ce7c2d561f67002ccc0ae68d10c8d760f525..1370f5c64c38ec892351c1775b26cc563d878a61 100644 (file)
@@ -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,