summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-05-25 16:01:55 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2022-05-25 16:01:55 +0900
commitfd1ac5cdf804e15039276855134ecf1c0fb715d4 (patch)
treefd831db26c27bbbb95d905661ce970f178dd2c12
parent89e8f265e37758c3aaaa7dc580d24d96d37cc8a8 (diff)
downloadlibassuan-fd1ac5cdf804e15039276855134ecf1c0fb715d4.tar.gz
client: Wipe the inbound buffer when CONFIDENTIAL.
* src/client.c (assuan_transact): Wipe the buffer. -- GnuPG-bug-id: 5977 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--src/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index 8b357e6..24bf396 100644
--- a/src/client.c
+++ b/src/client.c
@@ -275,6 +275,8 @@ assuan_transact (assuan_context_t ctx,
else
{
rc = data_cb (data_cb_arg, line, linelen);
+ if (ctx->flags.confidential)
+ wipememory (ctx->inbound.line, LINELENGTH);
if (!rc)
goto again;
}