pkcs7: Fail parsing PKCS#7 signed-data if content can't be parsed
This avoids a crash after verifying the signed attributes in the signature enumerator.
This commit is contained in:
@@ -486,7 +486,7 @@ static bool parse(private_pkcs7_signed_data_t *this, chunk_t content)
|
||||
break;
|
||||
}
|
||||
}
|
||||
success = parser->success(parser);
|
||||
success = parser->success(parser) && this->content;
|
||||
parser->destroy(parser);
|
||||
|
||||
return success;
|
||||
|
||||
Reference in New Issue
Block a user