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