added missing break in case statement
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 19 May 2008 20:10:26 +0000 (20:10 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 19 May 2008 20:10:26 +0000 (20:10 -0000)
src/libstrongswan/plugins/x509/x509_ocsp_response.c

index 8ba3110..3c28ba0 100644 (file)
@@ -643,13 +643,15 @@ static bool parse_OCSPResponse(private_x509_ocsp_response_t *this)
                                        case OID_BASIC:
                                                success = parse_basicOCSPResponse(this, object,
                                                                                                parser->get_level(parser)+1);
+                                               break;
                                        default:
                                                DBG1("  ocsp response type %#B not supported", &object);
+                                               goto end;
                                }
                                break;
                }
        }
-       success = parser->success(parser);
+       success &= parser->success(parser);
 
 end:
        parser->destroy(parser);