summaryrefslogtreecommitdiffstats
path: root/src/shared/creds-util.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/shared/creds-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/creds-util.c b/src/shared/creds-util.c
index 1c12fdfa9f..22c5e42311 100644
--- a/src/shared/creds-util.c
+++ b/src/shared/creds-util.c
@@ -1376,7 +1376,7 @@ int decrypt_credential_and_warn(
if (ret) {
char *without_metadata;
- without_metadata = memdup((uint8_t*) plaintext + hs, plaintext_size - hs);
+ without_metadata = memdup_suffix0((uint8_t*) plaintext + hs, plaintext_size - hs);
if (!without_metadata)
return log_oom();