Skip to content

Commit

Permalink
confile_utils: cleanup new_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 15, 2020
1 parent 28afad7 commit 3990a38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/confile_utils.c
Expand Up @@ -763,8 +763,7 @@ bool new_hwaddr(char *hwaddr)
rand() % 255, rand() % 255);
#endif
if (ret < 0 || ret >= 18) {
SYSERROR("Failed to call snprintf()");
return false;
return log_error_errno(false, EIO, "Failed to call snprintf()");
}

return true;
Expand Down

0 comments on commit 3990a38

Please sign in to comment.