From 4fa0a65676a29cb53ee242caf13c393f7573c9a3 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 19 Aug 2020 11:39:22 +0900 Subject: 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 --- scd/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scd/command.c') 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; -- cgit v1.2.3