dirmngr: Improve error handling.
authorJustus Winter <justus@g10code.com>
Thu, 19 Nov 2015 16:37:32 +0000 (17:37 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 19 Nov 2015 16:53:18 +0000 (17:53 +0100)
* dirmngr/crlcache.c (crl_cache_cert_isvalid): Add missing break.
--
Found using the Clang Static Analyzer.

Signed-off-by: Justus Winter <justus@g10code.com>
dirmngr/crlcache.c

index 6d3f8ce..13d8a26 100644 (file)
@@ -1512,6 +1512,7 @@ crl_cache_cert_isvalid (ctrl_t ctrl, ksba_cert_t cert,
       break;
     case CRL_CACHE_DONTKNOW:
       err = gpg_error (GPG_ERR_NO_CRL_KNOWN);
+      break;
     case CRL_CACHE_CANTUSE:
       err = gpg_error (GPG_ERR_NO_CRL_KNOWN);
       break;