From 29868fb1238a7127b4f939f5693732eeb96f7aba Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Fri, 10 May 2024 21:06:24 +0900
Subject: [PATCH 0625/1160] libcrypt-util: fix wrong errno value assignment
Follow-up for 9de324c3c919f20fd49e1d25579f5a66cac0eaa0.
(cherry picked from commit a937fa96ac121bc8c1e74c3014c6bc0f2a597aeb)
src/shared/libcrypt-util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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;
}
--
2.33.0