]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dump use after free
authorAlan T. DeKok <aland@freeradius.org>
Tue, 24 Oct 2017 12:37:57 +0000 (08:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 24 Oct 2017 12:37:57 +0000 (08:37 -0400)
src/main/radsniff.c

index c36666c1b63d601a0365189b44fdaf2b78200797..623930b9f9f22cd9692060da7cecc63f2b09acb7 100644 (file)
@@ -2877,12 +2877,12 @@ int main(int argc, char *argv[])
 finish:
        cleanup = true;
 
+       if (conf->daemonize) unlink(conf->pidfile);
+
        /*
         *      Free all the things! This also closes all the sockets and file descriptors
         */
        talloc_free(conf);
 
-       if (conf->daemonize) unlink(conf->pidfile);
-
        return ret;
 }