We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a0426 commit 18019a6Copy full SHA for 18019a6
1 file changed
src/jrd/CryptoManager.cpp
@@ -357,7 +357,9 @@ namespace Jrd {
357
crypt = hdr->hdr_flags & Ods::hdr_encrypted;
358
process = hdr->hdr_flags & Ods::hdr_crypt_process;
359
360
- if ((crypt || process) && !cryptPlugin)
+ // tdbb w/o attachment comes when database is shutting down in the end of detachDatabase()
361
+ // the only needed here page is header, i.e. we can live w/o cryptPlugin
362
+ if ((crypt || process) && (!cryptPlugin) && tdbb->getAttachment())
363
{
364
ClumpletWriter hc(ClumpletWriter::UnTagged, hdr->hdr_page_size);
365
hdr.getClumplets(hc);
@@ -381,7 +383,7 @@ namespace Jrd {
381
383
hash = valid;
382
384
}
385
- if (flags & CRYPT_HDR_INIT)
386
+ if (cryptPlugin && (flags & CRYPT_HDR_INIT))
387
checkDigitalSignature(tdbb, hdr);
388
389
0 commit comments