From b2e576bb172fcce419e639216393126c94fc99fa Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 23 Mar 2015 05:20:03 +0100 Subject: Improve ifname configuration handling --- src/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 44b097b..a84830b 100644 --- a/src/options.c +++ b/src/options.c @@ -228,8 +228,7 @@ static void option_mode(const char *arg) { /** Handles the --interface option */ static void option_interface(const char *arg) { - free(conf.ifname); - conf.ifname = fastd_strdup(arg); + fastd_config_ifname(NULL, arg); } /** Handles the --mtu option */ -- cgit v1.2.3