removes request->nonceSz check to fully validate response->nonce.

This commit is contained in:
Moisés Guimarães
2017-01-02 14:59:00 -02:00
parent 073aa95496
commit c82372cf78

View File

@@ -9955,7 +9955,7 @@ int CompareOcspReqResp(OcspRequest* req, OcspResponse* resp)
/* Nonces are not critical. The responder may not necessarily add
* the nonce to the response. */
if (req->nonceSz && resp->nonceSz != 0) {
if (resp->nonceSz != 0) {
cmp = req->nonceSz - resp->nonceSz;
if (cmp != 0)
{