[git] GnuPG - branch, master, updated. gnupg-2.1.20-73-g36c4e54

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Apr 14 07:50:21 CEST 2017


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, master has been updated
       via  36c4e540f1a4992675ee6e0acca1231325457079 (commit)
      from  adb77d095b3958482863a17c83746f33945638dc (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 36c4e540f1a4992675ee6e0acca1231325457079
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Apr 14 12:54:06 2017 +0900

    agent: Clean up error initialize/return.
    
    * agent/call-pinentry.c (start_pinentry): Return RC.
    * agent/command-ssh.c (ssh_handler_request_identities): Don't set ERR.
    * agent/findkey.c (try_unprotect_cb): Return ERR.
    (unprotect): Don't set RC.
    * agent/gpg-agent.c (handle_connections): Don't set fd.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index a35a3fb..6524cb1 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -654,7 +654,7 @@ start_pinentry (ctrl_t ctrl)
 
   xfree (flavor_version);
 
-  return 0;
+  return rc;
 }
 
 
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index eeb1498..5c7cf1f 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -2576,7 +2576,6 @@ ssh_handler_request_identities (ctrl_t ctrl,
 
   key_public = NULL;
   key_counter = 0;
-  err = 0;
 
   key_blobs = es_fopenmem (0, "r+b");
   if (! key_blobs)
diff --git a/agent/findkey.c b/agent/findkey.c
index 0b2ddf1..f3c8ca9 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -328,7 +328,7 @@ try_unprotect_cb (struct pin_entry_info_s *pi)
       xfree (desc);
     }
 
-  return 0;
+  return err;
 }
 
 
@@ -552,7 +552,6 @@ unprotect (ctrl_t ctrl, const char *cache_nonce, const char *desc_text,
               return 0;
             }
           xfree (pw);
-          rc  = 0;
         }
       else if (cache_mode == CACHE_MODE_NORMAL)
         {
@@ -590,7 +589,6 @@ unprotect (ctrl_t ctrl, const char *cache_nonce, const char *desc_text,
                   return 0;
                 }
               xfree (pw);
-              rc  = 0;
             }
         }
 
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index e23f438..c764be8 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -2964,7 +2964,6 @@ handle_connections (gnupg_fd_t listen_fd,
                       xfree (ctrl);
                     }
                 }
-              fd = GNUPG_INVALID_FD;
             }
         }
     }

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

Summary of changes:
 agent/call-pinentry.c | 2 +-
 agent/command-ssh.c   | 1 -
 agent/findkey.c       | 4 +---
 agent/gpg-agent.c     | 1 -
 4 files changed, 2 insertions(+), 6 deletions(-)


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




More information about the Gnupg-commits mailing list