From: Alan T. DeKok Date: Wed, 4 Jun 2014 21:06:41 +0000 (-0400) Subject: Pull checks from master X-Git-Tag: release_3_0_4_rc2~413 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=172fa2077b2032ba0992d5e4c18ac29699d57b77;p=freeradius.git Pull checks from master If we're checking the config, don't create the packet lists --- diff --git a/src/main/process.c b/src/main/process.c index af867f3..2cd549b 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -4546,13 +4546,15 @@ int radius_event_start(CONF_SECTION *cs, bool have_children) time(&fr_start_time); - /* - * radius_event_init() must be called first - */ - rad_assert(el); + if (!check_config) { + /* + * radius_event_init() must be called first + */ + rad_assert(el); - pl = fr_packet_list_create(0); - if (!pl) return 0; /* leak el */ + pl = fr_packet_list_create(0); + if (!pl) return 0; /* leak el */ + } request_num_counter = 0;