dirmngr: Fix NULL-deref while loading a CRL.
authorWerner Koch <wk@gnupg.org>
Wed, 28 Oct 2015 10:57:00 +0000 (11:57 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 28 Oct 2015 10:57:00 +0000 (11:57 +0100)
* dirmngr/crlcache.c (crl_parse_insert): Set error before leaping to
failure.
--

GnuPG-bug-id: 2082
Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/crlcache.c

index 64836e2..d205999 100644 (file)
@@ -1702,7 +1702,8 @@ crl_parse_insert (ctrl_t ctrl, ksba_crl_t crl,
         {
         case KSBA_SR_BEGIN_ITEMS:
           {
-            if (start_sig_check (crl, &md, &algo ))
+            err = start_sig_check (crl, &md, &algo);
+            if (err)
               goto failure;
 
             err = ksba_crl_get_update_times (crl, thisupdate, nextupdate);