Skip to content

Commit

Permalink
confile: cleanup get_config_net_hwaddr()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 9, 2020
1 parent f1bf5d7 commit 8b123a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile.c
Expand Up @@ -5933,7 +5933,7 @@ static int get_config_net_hwaddr(const char *key, char *retv, int inlen,
memset(retv, 0, inlen);

if (!netdev)
return -1;
return ret_errno(EINVAL);

if (netdev->hwaddr)
strprint(retv, inlen, "%s", netdev->hwaddr);
Expand Down

0 comments on commit 8b123a8

Please sign in to comment.