mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
0da923a124
commit
4fa0a65676
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue