aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/pem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pluto/pem.c')
-rw-r--r--src/pluto/pem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/pem.c b/src/pluto/pem.c
index e9edb9134..8c607cfa4 100644
--- a/src/pluto/pem.c
+++ b/src/pluto/pem.c
@@ -286,7 +286,7 @@ pem_decrypt(chunk_t *blob, chunk_t *iv, prompt_pass_t *pass, const char* label)
return ugh;
}
- clonetochunk(blob_copy, blob->ptr, blob->len);
+ blob_copy = chunk_clone(*blob);
if (pem_decrypt_3des(blob, iv, pass->secret))
{