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); }