mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Fixed invalid free.
This commit is contained in:
parent
57ef0d6087
commit
eb5709f554
@ -311,9 +311,7 @@ agent_ask_new_passphrase (ctrl_t ctrl, const char *prompt,
|
|||||||
unsigned char *buffer;
|
unsigned char *buffer;
|
||||||
|
|
||||||
err = pinentry_loopback(ctrl, "NEW_PASSPHRASE", &buffer, &size, len);
|
err = pinentry_loopback(ctrl, "NEW_PASSPHRASE", &buffer, &size, len);
|
||||||
if (err)
|
if (!err)
|
||||||
xfree(buffer);
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
buffer[size] = 0;
|
buffer[size] = 0;
|
||||||
*r_passphrase = buffer;
|
*r_passphrase = buffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user