mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
dirmngr: Fix NULL-deref while loading a CRL.
* dirmngr/crlcache.c (crl_parse_insert): Set error before leaping to failure. -- GnuPG-bug-id: 2082 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
1f872cb4ad
commit
fa15a71daf
@ -1702,7 +1702,8 @@ crl_parse_insert (ctrl_t ctrl, ksba_crl_t crl,
|
|||||||
{
|
{
|
||||||
case KSBA_SR_BEGIN_ITEMS:
|
case KSBA_SR_BEGIN_ITEMS:
|
||||||
{
|
{
|
||||||
if (start_sig_check (crl, &md, &algo ))
|
err = start_sig_check (crl, &md, &algo);
|
||||||
|
if (err)
|
||||||
goto failure;
|
goto failure;
|
||||||
|
|
||||||
err = ksba_crl_get_update_times (crl, thisupdate, nextupdate);
|
err = ksba_crl_get_update_times (crl, thisupdate, nextupdate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user