[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.4-25-gdf97fe2

by Katsuhiro Ueno cvs at cvs.gnupg.org
Wed Feb 14 17:30:10 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, STABLE-BRANCH-2-2 has been updated
       via  df97fe24807826ddc2af0e45e416fb81c5666f88 (commit)
      from  80719612b7e92aff5887f2a68d550a24f350722c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit df97fe24807826ddc2af0e45e416fb81c5666f88
Author: Katsuhiro Ueno <uenobk at gmail.com>
Date:   Wed Feb 7 18:52:37 2018 +0900

    agent: Avoid appending a '\0' byte to the response of READKEY
    
    * agent/command.c (cmd_readkey): Set pkbuflen to the length of the output
    without an extra '\0' byte.

diff --git a/agent/command.c b/agent/command.c
index 3a547ff..f9bc6ca 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1031,7 +1031,8 @@ cmd_readkey (assuan_context_t ctx, char *line)
             rc = gpg_error_from_syserror ();
           else
             {
-              gcry_sexp_sprint (s_pkey, GCRYSEXP_FMT_CANON, pkbuf, pkbuflen);
+              pkbuflen = gcry_sexp_sprint (s_pkey, GCRYSEXP_FMT_CANON,
+                                           pkbuf, pkbuflen);
               rc = assuan_send_data (ctx, pkbuf, pkbuflen);
             }
         }

-----------------------------------------------------------------------

Summary of changes:
 agent/command.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list