]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Arrange not to free the static requested option array.
authorTed Lemon <source@isc.org>
Fri, 1 Oct 1999 03:34:49 +0000 (03:34 +0000)
committerTed Lemon <source@isc.org>
Fri, 1 Oct 1999 03:34:49 +0000 (03:34 +0000)
client/clparse.c

index f88b0687b3d43c7a27a2dc22f386e2b2445eae8b..007dec6379b1f6d7dbe4e1d83345d77ee82ac73d 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: clparse.c,v 1.33 1999/10/01 03:11:20 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: clparse.c,v 1.34 1999/10/01 03:34:49 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -381,6 +381,8 @@ void parse_client_statement (cfile, ip, config)
 
              case REQUEST:
                token = next_token (&val, cfile);
+               if (!config -> requested_options == default_requested_options)
+                       config -> requested_options = (u_int32_t *)0;
                parse_option_list (cfile, &config -> requested_options);
                return;