aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-05-25 07:01:55 +0000
committerNIIBE Yutaka <[email protected]>2022-05-25 07:01:55 +0000
commitfd1ac5cdf804e15039276855134ecf1c0fb715d4 (patch)
treefd831db26c27bbbb95d905661ce970f178dd2c12
parentserver,client: Wipe the outbound buffer when CONFIDENTIAL. (diff)
downloadlibassuan-fd1ac5cdf804e15039276855134ecf1c0fb715d4.tar.gz
libassuan-fd1ac5cdf804e15039276855134ecf1c0fb715d4.zip
client: Wipe the inbound buffer when CONFIDENTIAL.
* src/client.c (assuan_transact): Wipe the buffer. -- GnuPG-bug-id: 5977 Signed-off-by: NIIBE Yutaka <[email protected]>
-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;
}