summaryrefslogtreecommitdiffstats
path: root/tools/gpg-wks-server.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-07-12 17:27:15 +0200
committerWerner Koch <wk@gnupg.org>2016-07-12 18:18:19 +0200
commit5de41c4ecef32add89044b8a550a47cce8c6d61e (patch)
treec8022af01bd76aaf1a0d4fbc60e6a3776618e59a /tools/gpg-wks-server.c
parentwks: Also create DANE record. (diff)
downloadgnupg2-5de41c4ecef32add89044b8a550a47cce8c6d61e.tar.xz
gnupg2-5de41c4ecef32add89044b8a550a47cce8c6d61e.zip
wks: Try to send an encrypted confirmation back.
* tools/gpg-wks-client.c (encrypt_response_status_cb): New. (encrypt_response): New. (send_confirmation_response): Encrypt the response. * tools/gpg-wks-server.c (send_confirmation_request): Use freeing of BODY and BODYENC. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/gpg-wks-server.c')
-rw-r--r--tools/gpg-wks-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpg-wks-server.c b/tools/gpg-wks-server.c
index 88313eca9..de1be6a65 100644
--- a/tools/gpg-wks-server.c
+++ b/tools/gpg-wks-server.c
@@ -904,8 +904,8 @@ send_confirmation_request (server_ctx_t ctx,
leave:
mime_maker_release (mime);
- xfree (bodyenc);
- xfree (body);
+ es_fclose (bodyenc);
+ es_fclose (body);
xfree (from_buffer);
return err;
}