aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Schulte <[email protected]>2004-10-01 23:09:33 +0000
committerMoritz Schulte <[email protected]>2004-10-01 23:09:33 +0000
commiteaed17fc95a30f21bf95d2db1a4a837f29dc3a7c (patch)
tree361e89b85eec55debb7bda88af3f1e79b2666806
parentUse gcry_malloc instead of malloc where appropriate. (diff)
downloadgnupg-eaed17fc95a30f21bf95d2db1a4a837f29dc3a7c.tar.gz
gnupg-eaed17fc95a30f21bf95d2db1a4a837f29dc3a7c.zip
Updated from HEAD.
-rw-r--r--agent/protect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/protect.c b/agent/protect.c
index 2de5e97c5..edcca36d9 100644
--- a/agent/protect.c
+++ b/agent/protect.c
@@ -699,7 +699,7 @@ agent_unprotect (const unsigned char *protectedkey, const char *passphrase,
/* Albeit cleartext has been allocated in secure memory and thus
xfree will wipe it out, we do an extra wipe just in case
somethings goes badly wrong. */
- wipememory (cleartext, prot_begin-protectedkey);
+ wipememory (cleartext, n);
xfree (cleartext);
if (rc)
return rc;