mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
g10: Copy expiredate from primary key when marked expired.
* g10/getkey.c (merge_selfsigs): Update ->expiredate of subkey. -- GnuPG-bug-id: 3343 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
4c7d63cd5b
commit
265e6d6706
@ -3185,7 +3185,11 @@ merge_selfsigs (ctrl_t ctrl, kbnode_t keyblock)
|
|||||||
memcpy (&pk->revoked, &rinfo, sizeof (rinfo));
|
memcpy (&pk->revoked, &rinfo, sizeof (rinfo));
|
||||||
}
|
}
|
||||||
if (main_pk->has_expired)
|
if (main_pk->has_expired)
|
||||||
|
{
|
||||||
pk->has_expired = main_pk->has_expired;
|
pk->has_expired = main_pk->has_expired;
|
||||||
|
if (!pk->expiredate || pk->expiredate > main_pk->expiredate)
|
||||||
|
pk->expiredate = main_pk->expiredate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user