Skip to content

Commit 3fba08f

Browse files
JulienMalkabluca
authored andcommitted
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. (cherry picked from commit f64b9a1)
1 parent 99234b9 commit 3fba08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/creds-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ int read_credential_with_decryption(const char *name, void **ret, size_t *ret_si
170170
UINT64_MAX, SIZE_MAX,
171171
READ_FULL_FILE_SECURE,
172172
NULL,
173-
(char**) data, &sz);
173+
(char**) &data, &sz);
174174
if (r == -ENOENT)
175175
goto not_found;
176176
if (r < 0)

0 commit comments

Comments
 (0)