1
0
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:
Yu Watanabe 2024-05-10 21:06:24 +09:00 committed by Luca Boccassi
parent cc65d63d6d
commit a937fa96ac

View File

@ -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;
}