Commit 644319eb authored by Jun Choi's avatar Jun Choi Committed by Commit Bot

Fix nullptr deference in FidoRequestHandlerBase

Bug: 870193
Change-Id: Ie7131514e1cf45f958dca11df8a142ea92440cad
Reviewed-on: https://chromium-review.googlesource.com/1159992Reviewed-by: default avatarKim Paulhamus <kpaulhamus@chromium.org>
Commit-Queue: Jun Choi <hongjunchoi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580276}
parent 602603cd
......@@ -140,11 +140,11 @@ void FidoRequestHandlerBase::AddAuthenticator(
active_authenticators_.emplace(authenticator->GetId(),
std::move(authenticator));
if (!ShouldDeferRequestDispatchToUi(*authenticator.get()))
if (!ShouldDeferRequestDispatchToUi(*authenticator_ptr))
DispatchRequest(authenticator_ptr);
if (observer_)
observer_->FidoAuthenticatorAdded(*authenticator);
observer_->FidoAuthenticatorAdded(*authenticator_ptr);
}
} // namespace device
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment