From: Ted Lemon Date: Fri, 1 Oct 1999 03:34:49 +0000 (+0000) Subject: Arrange not to free the static requested option array. X-Git-Tag: V3-BETA-1-PATCH-2~5^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9ea25d669958245a45b9ce93781e90045e4e6b4;p=thirdparty%2Fdhcp.git Arrange not to free the static requested option array. --- diff --git a/client/clparse.c b/client/clparse.c index f88b0687b..007dec637 100644 --- a/client/clparse.c +++ b/client/clparse.c @@ -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;