No ocsp_ok label either
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 14 Sep 2015 16:22:56 +0000 (17:22 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 14 Sep 2015 16:23:15 +0000 (17:23 +0100)
src/main/tls.c

index e78aec5..1e1e4f5 100644 (file)
@@ -1442,7 +1442,7 @@ static int ocsp_check(REQUEST *request, X509_STORE *store, X509 *issuer_cert, X5
                if (!host || !port || !path) {
                        RWDEBUG("ocsp: Host or port or path missing from configured URL \"%s\".  Not doing OCSP", url);
                        ocsp_ok = 2;
-                       goto ocsp_ok;
+                       goto ocsp_skip;
                }
        } else {
                int ret;
@@ -1460,7 +1460,7 @@ static int ocsp_check(REQUEST *request, X509_STORE *store, X509 *issuer_cert, X5
                        }
                        RWDEBUG("ocsp: No OCSP URL in certificate.  Not doing OCSP");
                        ocsp_ok = 2;
-                       goto ocsp_ok;
+                       goto ocsp_skip;
 
                case 1:
                        break;