]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
el might be NULL if we failed to parse the config
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 15:45:54 +0000 (11:45 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 15:45:54 +0000 (11:45 -0400)
src/bin/unit_test_module.c

index 8601fa4ac110f47df3343135e3c457f5fec8d541..933f483f1bfa91af4455f94cfe41f62b97c5ea08 100644 (file)
@@ -949,7 +949,7 @@ cleanup:
        /*
         *      Give processes a chance to exit
         */
-       fr_event_list_reap_signal(el, fr_time_delta_from_sec(5), SIGKILL);
+       if (el) fr_event_list_reap_signal(el, fr_time_delta_from_sec(5), SIGKILL);
 
        /*
         *      Free the event list.