core: Fix parsing of userid sigs after a subpkg

* src/keylist.c (keylist_colon_handler): Do not clear
out the tmp_uid when a subpacket line is encountered.

--
When the uid is cleared no more signatures following
the subpacket are parsed, so we now no longer clear
it when a subpacket is encountered.
This commit is contained in:
Andre Heinecke 2019-10-29 16:43:37 +01:00
parent 1f3ca698f1
commit 1242c6c93a
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -621,8 +621,9 @@ keylist_colon_handler (void *priv, char *line)
/* Only look at signature and trust info records immediately
following a user ID. For this, clear the user ID pointer when
encountering anything but a signature or trust record. */
if (rectype != RT_SIG && rectype != RT_REV && rectype != RT_TFS)
encountering anything but a signature, trust record or subpacket. */
if (rectype != RT_SIG && rectype != RT_REV && rectype != RT_TFS &&
rectype != RT_SPK)
opd->tmp_uid = NULL;
/* Only look at subpackets immediately following a signature. For