Skip to content

Commit

Permalink
confile: cleanup get_config_net_script_up()
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 a90dc55 commit 5ac4e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile.c
Expand Up @@ -5891,7 +5891,7 @@ static int get_config_net_script_up(const char *key, char *retv, int inlen,
memset(retv, 0, inlen);

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

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

0 comments on commit 5ac4e7b

Please sign in to comment.