afs: Deplete user list at startup.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 1 Jan 2018 03:13:17 +0000 (04:13 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Mar 2018 02:28:57 +0000 (03:28 +0100)
The afs process does not need the user list, so we may free the list
in server.c before calling init_afs().

server.c

index 8b13d35..e533534 100644 (file)
--- a/server.c
+++ b/server.c
@@ -505,6 +505,7 @@ static int init_afs(int argc, char **argv)
                int i;
 
                afs_pid = getpid();
+               user_list_deplete();
                for (i = argc - 1; i >= 0; i--)
                        memset(argv[i], 0, strlen(argv[i]));
                i = argc - lls_num_inputs(cmdline_lpr) - 1;