gpg: Avoid uninitialized revkey.fprlen.

* g10/keygen.c (parse_revocation_key): Store the fingerprint length in
created structure.

--

GnuPG-bug-id: 5393
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2021-09-13 19:04:56 +02:00 committed by NIIBE Yutaka
parent ae3d0bb8e7
commit d24c5df52b
1 changed files with 2 additions and 0 deletions

View File

@ -4003,6 +4003,8 @@ parse_revocation_key (const char *fname,
if (i != 20 && i != 32)
goto fail;
revkey.fprlen = i;
/* skip to the tag */
while(*pn && *pn!='s' && *pn!='S')
pn++;