From: Christian Brauner Date: Mon, 29 Mar 2021 10:15:58 +0000 (+0200) Subject: confile: cleanup set_config_net_script_up() X-Git-Tag: lxc-5.0.0~232^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=040b3e1d24c646d0a90d7f8c1f42368bec93b9ba;p=thirdparty%2Flxc.git confile: cleanup set_config_net_script_up() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 6aa47f104..bb4dc05c8 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1044,8 +1044,9 @@ static int set_config_net_script_up(const char *key, const char *value, if (!netdev) return ret_errno(EINVAL); + clr_config_net_script_up(key, lxc_conf, data); if (lxc_config_value_empty(value)) - return clr_config_net_script_up(key, lxc_conf, data); + return 0; return set_config_string_item(&netdev->upscript, value); }