diff options
author | NIIBE Yutaka <[email protected]> | 2022-05-25 07:01:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-06-16 07:57:22 +0000 |
commit | aac300389210031588a1f4c6d7f1efb4b45c4c95 (patch) | |
tree | 7f9ffa21b2669c4ea60c19b859ae0ad8da6e096d | |
parent | server,client: Wipe the outbound buffer when CONFIDENTIAL. (diff) | |
download | libassuan-aac300389210031588a1f4c6d7f1efb4b45c4c95.tar.gz libassuan-aac300389210031588a1f4c6d7f1efb4b45c4c95.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.c | 2 |
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; } |