mirror of https://github.com/Icinga/icinga2.git
Fix crash when using incorrectly formatted password hash
This commit is contained in:
parent
65a806f5dc
commit
df86245fe8
|
@ -162,7 +162,7 @@ void HttpServerConnection::ProcessMessageAsync(HttpRequest& request)
|
|||
user.reset();
|
||||
else {
|
||||
Dictionary::Ptr passwordDict = user->GetPasswordDict();
|
||||
if (!ComparePassword(passwordDict->Get("password"), password, passwordDict->Get("salt")))
|
||||
if (!passwordDict || !ComparePassword(passwordDict->Get("password"), password, passwordDict->Get("salt")))
|
||||
user.reset();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue