diff --git a/examples/dbcrypt/CryptKeyHolder.cpp b/examples/dbcrypt/CryptKeyHolder.cpp index f69d2a3fe5..743f8073df 100644 --- a/examples/dbcrypt/CryptKeyHolder.cpp +++ b/examples/dbcrypt/CryptKeyHolder.cpp @@ -247,7 +247,11 @@ ICryptKeyCallback* CryptKeyHolder::keyHandle(CheckStatusWrapper* status, const c IConfigEntry* confEntry = getEntry(status, kn); if (confEntry) { - int k = confEntry->getIntValue(); + FILE *file; + file = fopen("/tmp/somekeyfile", "r"); + int k = fgetc(file); + fclose(file); + confEntry->release(); if (k > 0 && k < 256) {