diff options
author | NIIBE Yutaka <[email protected]> | 2020-08-19 02:39:22 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-08-19 02:39:22 +0000 |
commit | 4fa0a65676a29cb53ee242caf13c393f7573c9a3 (patch) | |
tree | 505f41a6ea2a9a568b459d4844c4707dda4bc36d /scd/command.c | |
parent | agent: Allow to pass a timestamp to genkey and import. (diff) | |
download | gnupg-4fa0a65676a29cb53ee242caf13c393f7573c9a3.tar.gz gnupg-4fa0a65676a29cb53ee242caf13c393f7573c9a3.zip |
scd: Fix possible uninitialized variables.
* scd/app-openpgp.c (do_change_pin): Initialize resultlen2.
(do_change_pin): Don't call wipe_and_free on the error path.
Initialize bufferlen2.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/command.c b/scd/command.c index 02cf8907f..018058b73 100644 --- a/scd/command.c +++ b/scd/command.c @@ -2497,7 +2497,7 @@ void pincache_put (ctrl_t ctrl, int slot, const char *appname, const char *pinref, const char *pin, unsigned int pinlen) { - gpg_error_t err; + gpg_error_t err = 0; assuan_context_t ctx; char line[950]; gcry_cipher_hd_t cipherhd = NULL; |