mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Allow NULL for free_public_key.
This commit is contained in:
parent
850f09b2e3
commit
6cf8890dc1
8 changed files with 36 additions and 34 deletions
|
@ -97,8 +97,7 @@ get_session_key (PKT_pubkey_enc * k, DEK * dek)
|
|||
|
||||
for (;;)
|
||||
{
|
||||
if (sk)
|
||||
free_public_key (sk);
|
||||
free_public_key (sk);
|
||||
sk = xmalloc_clear (sizeof *sk);
|
||||
rc = enum_secret_keys (&enum_context, sk);
|
||||
if (rc)
|
||||
|
@ -127,8 +126,7 @@ get_session_key (PKT_pubkey_enc * k, DEK * dek)
|
|||
}
|
||||
|
||||
leave:
|
||||
if (sk)
|
||||
free_public_key (sk);
|
||||
free_public_key (sk);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue