mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keygen.c (keygen_get_std_prefs): Set reference count when creating the
temporary user ID. * keyedit.c (keyedit_menu): Merge updpref and setpref. Keep updpref as an invisible alias. Add invisible alias for revphoto. Fix small memory leak when using "setpref" (not all of the uid was freed). (menu_revkey): Trigger a trust rebuild after revoking a key. Don't allow revoking an already-revoked whole key. (menu_revsubkey): Don't allow revoking an already-revoked subkey.
This commit is contained in:
parent
06c27b8a38
commit
1e487ab1d6
3 changed files with 61 additions and 28 deletions
|
@ -510,6 +510,8 @@ PKT_user_id *keygen_get_std_prefs(void)
|
|||
if(!prefs_initialized)
|
||||
keygen_set_std_prefs(NULL,0);
|
||||
|
||||
uid->ref=1;
|
||||
|
||||
uid->prefs=m_alloc((sizeof(prefitem_t *)*
|
||||
(nsym_prefs+nhash_prefs+nzip_prefs+1)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue