1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-03 16:53:03 +01:00

Updated from HEAD.

This commit is contained in:
Moritz Schulte 2004-10-01 23:09:33 +00:00
parent 56e7cc7027
commit eaed17fc95

View File

@ -699,7 +699,7 @@ agent_unprotect (const unsigned char *protectedkey, const char *passphrase,
/* Albeit cleartext has been allocated in secure memory and thus /* Albeit cleartext has been allocated in secure memory and thus
xfree will wipe it out, we do an extra wipe just in case xfree will wipe it out, we do an extra wipe just in case
somethings goes badly wrong. */ somethings goes badly wrong. */
wipememory (cleartext, prot_begin-protectedkey); wipememory (cleartext, n);
xfree (cleartext); xfree (cleartext);
if (rc) if (rc)
return rc; return rc;