aboutsummaryrefslogtreecommitdiffstats
path: root/agent/divert-scd.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-05-27 12:03:50 +0000
committerWerner Koch <[email protected]>2008-05-27 12:03:50 +0000
commit138bf2dc1552fe8b8a1da6edcbd9fdcb747a73b9 (patch)
tree2dd4b1c251b4802660287496b4fd688bb4d7e0c5 /agent/divert-scd.c
parentMinor bug fixes and document new gpg-connect-feature. (diff)
downloadgnupg-138bf2dc1552fe8b8a1da6edcbd9fdcb747a73b9.tar.gz
gnupg-138bf2dc1552fe8b8a1da6edcbd9fdcb747a73b9.zip
Fixed segv in gpg-agent (command marktrusted).
Replaced almost all free by xfree. Translation fixes.
Diffstat (limited to 'agent/divert-scd.c')
-rw-r--r--agent/divert-scd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/divert-scd.c b/agent/divert-scd.c
index 25207331f..eac3b59c3 100644
--- a/agent/divert-scd.c
+++ b/agent/divert-scd.c
@@ -120,7 +120,7 @@ ask_for_card (ctrl_t ctrl, const unsigned char *shadow_info, char **r_kid)
else
{
rc = agent_get_confirmation (ctrl, desc, NULL, NULL);
- free (desc);
+ xfree (desc);
}
}
if (rc)
@@ -293,7 +293,7 @@ getpin_cb (void *opaque, const char *info, char *buf, size_t maxbuf)
info? "')":"") < 0)
desc = NULL;
rc = agent_askpin (ctrl, desc?desc:info, prompt, NULL, pi);
- free (desc);
+ xfree (desc);
}
if (!rc)