creds-utils: fix read_full_file_full call in read_credential_with_decryption

data was passed as a null pointer when an address was expected.
As a result, the assert was always tripped.
This commit is contained in:
Julien Malka
2023-10-23 09:36:04 +02:00
committed by Daan De Meyer
parent e6e5a272ed
commit f64b9a1897
+1 -1
View File
@@ -171,7 +171,7 @@ int read_credential_with_decryption(const char *name, void **ret, size_t *ret_si
UINT64_MAX, SIZE_MAX,
READ_FULL_FILE_SECURE,
NULL,
(char**) data, &sz);
(char**) &data, &sz);
if (r == -ENOENT)
goto not_found;
if (r < 0)