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:
1 parent
74fd2593a7
commit
531de4d858
1 file changed
+1
-1
@@ -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