]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Missed fr_reset_dumpable
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jul 2018 23:19:20 +0000 (19:19 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jul 2018 23:19:20 +0000 (19:19 -0400)
src/bin/radiusd.c
src/lib/server/util.c

index 95015bb02affb85edc4ccc8645546c47fa49b498..b3520b63f3f926f103fd3f326250aae10aed46aa 100644 (file)
@@ -873,7 +873,7 @@ cleanup:
        tls_free();             /* Cleanup any memory alloced by OpenSSL and placed into globals */
 #endif
 
-       talloc_memory_report = config->talloc_memory_report;
+       talloc_memory_report = config->talloc_memory_report;    /* Grab this before we free the config */
 
        /*
         *      And now nothing should be left anywhere except the
index e2f8aebe0ce68ee5ded229ad43acaef1c27877f5..35bf96e4e1c01c1ef3e6753e3a421a2d2b376558 100644 (file)
@@ -1393,6 +1393,8 @@ void rad_suid_down(void)
                talloc_free(passwd);
                fr_exit_now(1);
        }
+
+       fr_reset_dumpable();
 }
 
 void rad_suid_down_permanent(void)