mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Fix a couple of minor bugs.
This commit is contained in:
parent
9c5313a791
commit
64f24da283
5 changed files with 18 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-06-24 Werner Koch <wk@g10code.com>
|
||||
|
||||
* passphrase.c (passphrase_to_dek): Do not deref a PW of NULL.
|
||||
* revoke.c (gen_revoke): Remove unused malloc of PK.
|
||||
|
||||
2009-06-17 Werner Koch <wk@g10code.com>
|
||||
|
||||
* parse-packet.c (parse): Use a casted -1 instead of a 32 bit
|
||||
|
|
|
@ -1003,7 +1003,7 @@ passphrase_to_dek( u32 *keyid, int pubkey_algo,
|
|||
get_last_passphrase(). */
|
||||
dek = xmalloc_secure_clear ( sizeof *dek );
|
||||
dek->algo = cipher_algo;
|
||||
if( !*pw && mode == 2 )
|
||||
if( (!pw || !*pw) && mode == 2 )
|
||||
dek->keylen = 0;
|
||||
else
|
||||
hash_passphrase( dek, pw, s2k, mode==2 );
|
||||
|
|
|
@ -488,8 +488,6 @@ gen_revoke( const char *uname )
|
|||
keyid_from_sk( sk, sk_keyid );
|
||||
print_seckey_info (sk);
|
||||
|
||||
pk = xmalloc_clear( sizeof *pk );
|
||||
|
||||
/* FIXME: We should get the public key direct from the secret one */
|
||||
|
||||
pub_keyblock=get_pubkeyblock(sk_keyid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue