ipfw: should init dpdk before all malloc

Signed-off-by: Ji Bo <jibo@xdja.com>
This commit is contained in:
Ji Bo 2017-11-21 14:32:00 +08:00
parent 595de2db4b
commit 896dcc2b9a
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ main(int ac, char *av[])
* If the last argument is an absolute pathname, interpret it
* as a file to be preprocessed.
*/
ff_ipc_init();
if (ac > 1 && av[ac - 1][0] == '/') {
if (access(av[ac - 1], R_OK) == 0)
ipfw_readfile(ac, av);