Merge pull request #195 from jetwhiz/fix-FileNode-setName

Bugfix: Segfault when running paranoid config in verbose mode
This commit is contained in:
rfjakob 2016-08-12 19:16:28 +02:00 committed by GitHub
commit af0386d89b

View File

@ -100,7 +100,9 @@ static bool setIV(const std::shared_ptr<FileIO> &io, uint64_t iv) {
bool FileNode::setName(const char *plaintextName_, const char *cipherName_,
uint64_t iv, bool setIVFirst) {
// Lock _lock( mutex );
VLOG(1) << "calling setIV on " << cipherName_;
if (cipherName_)
VLOG(1) << "calling setIV on " << cipherName_;
if (setIVFirst) {
if (fsConfig->config->externalIVChaining && !setIV(io, iv)) return false;