mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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:
parent
01329da8a7
commit
4d19759ce5
@ -634,6 +634,8 @@ read_certificate (const char *fname, unsigned char **rbuf, size_t *rbuflen)
|
|||||||
err = read_pem_certificate (fname, rbuf, rbuflen);
|
err = read_pem_certificate (fname, rbuf, rbuflen);
|
||||||
if (! err)
|
if (! err)
|
||||||
return 0;
|
return 0;
|
||||||
|
/* Clear the error count to try as binary certificate. */
|
||||||
|
log_get_errorcount (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
fp = fname? es_fopen (fname, "rb") : es_stdin;
|
fp = fname? es_fopen (fname, "rb") : es_stdin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user