• François Grisez's avatar
    AuthDB: avoid giving empty password list to password cache · 6bf1df54
    François Grisez authored
    Giving an empty list to the password cache corrupts it by adding
    a user in the cache without password. Then, the next time
    AuthDb calls getCachedPassword() for the same user, VALID_PASS_FOUND
    is returned but there is no password returned by the out argument.
    
    This commit adds a protection in cachePassword() that throw an
    invalid_argument exception if the given password list is empty.
    6bf1df54
Name
Last commit
Last update
.gitlab-ci-files Loading commit data...
build Loading commit data...
cmake Loading commit data...
debian Loading commit data...
doc Loading commit data...
docker Loading commit data...
flexisip.xcodeproj Loading commit data...
include Loading commit data...
linphone-sdk @ 33e688c8 Loading commit data...
m4 Loading commit data...
patches Loading commit data...
scripts Loading commit data...
share Loading commit data...
src Loading commit data...
submodules/externals Loading commit data...
test Loading commit data...
tester/register_noauth_deregister Loading commit data...
.clang-format Loading commit data...
.cproject Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
.project Loading commit data...
AUTHORS Loading commit data...
CHANGELOG.md Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
data-model.xsd Loading commit data...
prepare.py Loading commit data...
rpid.xsd Loading commit data...