aboutsummaryrefslogtreecommitdiffstats
path: root/scd/command.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-08-19 02:39:22 +0000
committerNIIBE Yutaka <[email protected]>2020-08-19 02:39:22 +0000
commit4fa0a65676a29cb53ee242caf13c393f7573c9a3 (patch)
tree505f41a6ea2a9a568b459d4844c4707dda4bc36d /scd/command.c
parentagent: Allow to pass a timestamp to genkey and import. (diff)
downloadgnupg-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.c2
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;