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:
Tobias Brunner
2026-06-01 18:21:43 +02:00
parent 74fd2593a7
commit 531de4d858
@@ -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;