]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
typo
authorAlan T. DeKok <aland@freeradius.org>
Fri, 2 Jul 2021 11:18:06 +0000 (07:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 2 Jul 2021 11:18:06 +0000 (07:18 -0400)
src/lib/debug.c

index 6330c9cb66d4831257c798857da3247c42c37101..ef6d542002a49ab069a0294b62bc64051f060a1c 100644 (file)
@@ -599,7 +599,7 @@ int fr_set_dumpable(bool allow_core_dumps)
                struct rlimit no_core;
 
                no_core.rlim_cur = 0;
-               no_core.rlim_max = current.rlim_max;
+               no_core.rlim_max = core_limits.rlim_max;
 
                if (setrlimit(RLIMIT_CORE, &no_core) < 0) {
                        fr_strerror_printf("Failed disabling core dumps: %s", fr_syserror(errno));