From eaed17fc95a30f21bf95d2db1a4a837f29dc3a7c Mon Sep 17 00:00:00 2001 From: Moritz Schulte Date: Fri, 1 Oct 2004 23:09:33 +0000 Subject: [PATCH] Updated from HEAD. --- agent/protect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;