wrong place for assertions committed in previous revision. fixed now.
authoralexei.volkov.bugs%sun.com
Wed, 17 Jan 2007 23:15:46 +0000
changeset 7646 6decda921d074d3ca281b342a0058cf0a44eb327
parent 7632 ac867a715538003dd9e70af5f5877307861ccf69
child 7647 37782998967d0b4b0eed9b6eacbd97feaf7999f7
push idunknown
push userunknown
push dateunknown
wrong place for assertions committed in previous revision. fixed now.
security/nss/lib/certhigh/ocsp.c
--- a/security/nss/lib/certhigh/ocsp.c
+++ b/security/nss/lib/certhigh/ocsp.c
@@ -1612,19 +1612,20 @@ ocsp_GetResponseData(CERTOCSPResponse *r
     basic = response->responseBytes->decodedResponse.basic;
     PORT_Assert(basic != NULL);
 
     responseData = basic->tbsResponseData;
     PORT_Assert(responseData != NULL);
 
     if (tbsResponseDataDER) {
         *tbsResponseDataDER = &basic->tbsResponseDataDER;
+
+        PORT_Assert((*tbsResponseDataDER)->data != NULL);
+        PORT_Assert((*tbsResponseDataDER)->len != 0);
     }
-    PORT_Assert((*tbsResponseDataDER)->data != NULL);
-    PORT_Assert((*tbsResponseDataDER)->len != 0);
 
     return responseData;
 }
 
 /*
  * Much like the routine above, except it returns the response signature.
  * Again, no copy is done.
  */