dirmngr: Clear the error count to try certificate as binary.

* dirmngr/dirmngr-client.c (read_certificate): Call
log_get_errorcount.

--

GnuPG-bug-id: 5531
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-03-24 13:55:32 +09:00
parent 01329da8a7
commit 4d19759ce5
1 changed files with 2 additions and 0 deletions

View File

@ -634,6 +634,8 @@ read_certificate (const char *fname, unsigned char **rbuf, size_t *rbuflen)
err = read_pem_certificate (fname, rbuf, rbuflen);
if (! err)
return 0;
/* Clear the error count to try as binary certificate. */
log_get_errorcount (1);
}
fp = fname? es_fopen (fname, "rb") : es_stdin;