wks: Use correct key for the confirmation
authorWerner Koch <wk@gnupg.org>
Wed, 13 Jul 2016 10:12:21 +0000 (12:12 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 13 Jul 2016 10:12:21 +0000 (12:12 +0200)
* tools/gpg-wks-client.c (send_confirmation_response): Actually
encrypt to the recipient.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/gpg-wks-client.c

index ca7ec70..2ee23d7 100644 (file)
@@ -581,7 +581,7 @@ send_confirmation_response (const char *sender, const char *address,
   es_rewind (body);
   if (encrypt)
     {
-      err = encrypt_response (&bodyenc, body, address);
+      err = encrypt_response (&bodyenc, body, sender);
       if (err)
         goto leave;
       es_fclose (body);