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:
committed by
Daan De Meyer
parent
e6e5a272ed
commit
f64b9a1897
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user