Index: net/cert/cert_verify_proc_builtin.cc |
diff --git a/net/cert/cert_verify_proc_builtin.cc b/net/cert/cert_verify_proc_builtin.cc |
index 0ac039942e1c9c61f002da8e01a00a75ed3d7fc1..67e91e5f656753fbeff6d92009f3e36930a4a7b6 100644 |
--- a/net/cert/cert_verify_proc_builtin.cc |
+++ b/net/cert/cert_verify_proc_builtin.cc |
@@ -309,6 +309,8 @@ scoped_refptr<X509Certificate> CreateVerifiedCertChain( |
scoped_refptr<X509Certificate> result = X509Certificate::CreateFromHandle( |
target_cert->os_cert_handle(), intermediates); |
+ // |target_cert| was already successfully parsed, so this should never fail. |
+ DCHECK(result); |
for (const X509Certificate::OSCertHandle handle : intermediates) |
X509Certificate::FreeOSCertHandle(handle); |