Browse Source

Fixed segfault on pre-existing subkey update

master
Edouard Tisserant 7 years ago
parent
commit
97ebbb6988
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dist/src/lib/keyring.c

+ 1
- 1
dist/src/lib/keyring.c View File

@ -1374,7 +1374,6 @@ unsigned pgp_add_directsig(
/* Detect duplicate direct sig */
directsigp = key->directsigs;
for (directsigidx = 0 ; directsigidx < key->directsigc;
directsigidx++, directsigp++)
{
@ -1477,6 +1476,7 @@ unsigned pgp_update_subkey(
if(memcmp(subkeyid, subkeyp->id, PGP_KEY_ID_SIZE) == 0 )
{
/* Found same subkey. Detect duplicate sig */
subkeysigp = key->subkeysigs;
for (subkeysigidx = 0 ; subkeysigidx < key->subkeysigc;
subkeysigidx++, subkeysigp++)
{


Loading…
Cancel
Save