commit 807a7802d898587d87ba155f2f43500635ee6680 parent 05ccd73818a06449edde288a111435cc5e162a35 Author: Marcel Holtmann <marcel@holtmann.org> Date: Mon, 17 Sep 2018 10:10:33 +0200 wired: Fix handling of interface whitelist and blacklist Diffstat:
| M | wired/ethdev.c | | | 4 | ++-- |
| M | wired/main.c | | | 3 | +++ |
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/wired/ethdev.c b/wired/ethdev.c @@ -59,8 +59,8 @@ struct eapol { static struct l_netlink *rtnl = NULL; static struct l_queue *ethdev_list = NULL; -static char **whitelist_filter; -static char **blacklist_filter; +static char **whitelist_filter = NULL; +static char **blacklist_filter = NULL; static struct l_io *pae_io; diff --git a/wired/main.c b/wired/main.c @@ -95,6 +95,9 @@ int main(int argc, char *argv[]) struct main_opts opts; const char *debugopt = NULL; + opts.interfaces = NULL; + opts.nointerfaces = NULL; + for (;;) { int opt;