[git] Pinentry - branch, master, updated. pinentry-0.9.3-5-gc29c565

by Daniel Kahn Gillmor cvs at cvs.gnupg.org
Thu Jun 4 17:46:52 CEST 2015


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 standard pinentry collection".

The branch, master has been updated
       via  c29c5657fd77e212799715c23806a0cb6e1cfd47 (commit)
      from  ee23924390a45700b35ab37a75278cfeb965b8c8 (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 c29c5657fd77e212799715c23806a0cb6e1cfd47
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Wed Jun 3 13:27:26 2015 -0400

    Make pinentry_setbufferlen always return the pin buffer.
    
    * pinentry/pinentry.c (pinentry_setbufferlen): When the pin buffer is
    already large enough, return the buffer instead of NULL.
    
    --
    
    Signed-Off-By: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
    Debian-Bug-Id: 787639

diff --git a/pinentry/pinentry.c b/pinentry/pinentry.c
index a0737ad..6f7a62c 100644
--- a/pinentry/pinentry.c
+++ b/pinentry/pinentry.c
@@ -438,7 +438,7 @@ pinentry_setbufferlen (pinentry_t pin, int len)
     len = 2048;
 
   if (len <= pin->pin_len)
-    return NULL;
+    return pin->pin;
 
   newp = secmem_realloc (pin->pin, len);
   if (newp)

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

Summary of changes:
 pinentry/pinentry.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The standard pinentry collection
http://git.gnupg.org




More information about the Gnupg-commits mailing list