mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Fix --quick-set-expire for V5 subkey fingerprints
* g10/keyedit.c (keyedit_quick_set_expire): Use actual size of fingerprint. -- The size of the fingerprints is either 20 (V4) or 32 (V5). Using the actual size of the fingerprints fixes the lookup of subkeys with V5 fingerprint. GnuPG-bug-id: 7298 (cherry picked from commit 79298e87d8436bf0b0bd07c2c1513d10a7eb5823)
This commit is contained in:
parent
2ae017a25f
commit
f355f3f381
@ -3526,7 +3526,7 @@ keyedit_quick_set_expire (ctrl_t ctrl, const char *fpr, const char *expirestr,
|
||||
&& !pk->flags.revoked )
|
||||
{
|
||||
fingerprint_from_pk (pk, fprbin, &fprlen);
|
||||
if (fprlen == 20 && !memcmp (fprbin, desc.u.fpr, 20))
|
||||
if (fprlen == desc.fprlen && !memcmp (fprbin, desc.u.fpr, fprlen))
|
||||
{
|
||||
node->flag |= NODFLG_SELKEY;
|
||||
any = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user