Init data before trying to use it
This commit is contained in:
parent
32e5db5906
commit
8a8b45c174
1 changed files with 2 additions and 2 deletions
4
l2tpns.c
4
l2tpns.c
|
|
@ -2199,8 +2199,9 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
time(&basetime); // start clock
|
time(&basetime); // start clock
|
||||||
// scan args
|
initdata();
|
||||||
|
|
||||||
|
// scan args
|
||||||
while ((o = getopt(argc, argv, "vc:h:a:")) >= 0)
|
while ((o = getopt(argc, argv, "vc:h:a:")) >= 0)
|
||||||
{
|
{
|
||||||
switch (o)
|
switch (o)
|
||||||
|
|
@ -2237,7 +2238,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
initiptables();
|
initiptables();
|
||||||
initplugins();
|
initplugins();
|
||||||
initdata();
|
|
||||||
init_cli();
|
init_cli();
|
||||||
read_config_file();
|
read_config_file();
|
||||||
log(1, 0, 0, 0, "L2TPNS Version 1.1.0 - http://l2tpns.sourceforge.net/\n");
|
log(1, 0, 0, 0, "L2TPNS Version 1.1.0 - http://l2tpns.sourceforge.net/\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue