Merge pull request #8451 from korjaa/fix_possible_filebase_deadlock

Added missing _mutex->unlock() to FileBase::lookup().
pull/8288/head
Cruz Monrreal 2018-10-17 17:40:29 -05:00 committed by GitHub
commit 1a6d2f6513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ FileBase *FileBase::lookup(const char *name, unsigned int len)
p = p->_next;
}
if (len == (sizeof "default") - 1 && std::memcmp("default", name, len) == 0) {
_mutex->unlock();
return _default;
}
_mutex->unlock();