mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
libcrypt-util: fix wrong errno value assignment
Follow-up for 9de324c3c9
.
This commit is contained in:
parent
cc65d63d6d
commit
a937fa96ac
@ -114,7 +114,7 @@ static char* systemd_crypt_ra(const char *phrase, const char *setting, void **da
|
||||
if (!*data) {
|
||||
*data = new0(struct crypt_data, 1);
|
||||
if (!*data) {
|
||||
errno = -ENOMEM;
|
||||
errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user