]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
triggers: Don't crash on trigger execution
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Jun 2023 19:47:35 +0000 (15:47 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Jun 2023 20:25:49 +0000 (16:25 -0400)
src/lib/server/exec.c

index b49ba06cad465351ca1a9febfaa739cad26485c6..93b9989c9e0551b92cd9e07b482e52d2b628f737 100644 (file)
@@ -357,6 +357,11 @@ static NEVER_RETURNS void exec_child(char **argv, char **envp,
         */
        fr_atexit_thread_local_disarm_all();
 
+       /*
+        *      Disarm the global destructors for the same reason
+        */
+       fr_atexit_global_disarm_all();
+
        /*
         *      I swear the signature for execve is wrong and should
         *      take 'char const * const argv[]'.