more bug fix

This commit is contained in:
NIIBE Yutaka
2010-11-05 18:22:56 +09:00
parent 6937d2a2ae
commit e4105fe92f
2 changed files with 3 additions and 2 deletions

View File

@@ -1,8 +1,10 @@
2010-11-05 NIIBE Yutaka <gniibe@fsij.org>
Bug fix.
Bug fixes.
* src/openpgp.c (gpg_change_keystring): Handle
GPG_KEY_FOR_AUTHENTICATION.
* src/openpgp-do.c (gpg_do_write_prvkey): Remove multiple call
of flash_do_release.
Bug fixes.
* src/openpgp-do.c (gpg_do_write_prvkey): compare with != operator.

View File

@@ -656,7 +656,6 @@ gpg_do_write_prvkey (enum kind_of_key kk, const uint8_t *key_data, int key_len,
dek = pd->dek_encrypted_3;
memcpy (pd->dek_encrypted_1, dek, DATA_ENCRYPTION_KEY_SIZE);
memset (pd->dek_encrypted_2, 0, DATA_ENCRYPTION_KEY_SIZE);
flash_do_release (do_data);
gpg_do_write_simple (NR_DO_KEYSTRING_PW1, NULL, 0);
gpg_do_write_simple (NR_DO_KEYSTRING_RC, NULL, 0);
flash_key_release (pd->key_addr);