mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyedit.c (menu_set_keyserver_url): Make sure we only operate on the
chosen selfsig so we don't accidentally promote an older selfsig to chosen. Discovered by Simon Josefsson and 'Todd'. * keygen.c (ask_expire_interval): Fix typo.
This commit is contained in:
parent
8dcbbf98bb
commit
b883e9642b
3 changed files with 14 additions and 4 deletions
|
@ -3558,7 +3558,8 @@ menu_set_keyserver_url (const char *url,
|
|||
{
|
||||
PKT_signature *sig = node->pkt->pkt.signature;
|
||||
if ( keyid[0] == sig->keyid[0] && keyid[1] == sig->keyid[1]
|
||||
&& (uid && (sig->sig_class&~3) == 0x10) )
|
||||
&& (uid && (sig->sig_class&~3) == 0x10)
|
||||
&& sig->flags.chosen_selfsig)
|
||||
{
|
||||
char *user=utf8_to_native(uid->name,strlen(uid->name),0);
|
||||
if( sig->version < 4 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue