From: Christian Brauner Date: Tue, 8 Dec 2020 17:56:13 +0000 (+0100) Subject: confile: cleanup clr_config_net_mtu() X-Git-Tag: lxc-5.0.0~330^2~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18bab943bd9ff065e5511e20cb3c852d91c128e3;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_mtu() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 3c0401991..9670dbfd1 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5410,10 +5410,9 @@ static int clr_config_net_mtu(const char *key, struct lxc_conf *lxc_conf, struct lxc_netdev *netdev = data; if (!netdev) - return -1; + return ret_errno(EINVAL); - free(netdev->mtu); - netdev->mtu = NULL; + free_disarm(netdev->mtu); return 0; }