From 040b3e1d24c646d0a90d7f8c1f42368bec93b9ba Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 29 Mar 2021 12:15:58 +0200 Subject: [PATCH] confile: cleanup set_config_net_script_up() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.47.2