Commit f8fb2ff1 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix double-callback-call crash in //chromeos/login/auth/

Fix bug found by the "bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: Icfdf8af891b11942d24bda43fb1e203333d3bd9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2556679
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
Auto-Submit: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: default avatarAchuith Bhandarkar <achuith@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830608}
parent 18d62250
......@@ -125,6 +125,7 @@ void ExtendedAuthenticatorImpl::OnFingerprintScanComplete(
if (!reply) {
std::move(callback).Run(cryptohome::CryptohomeErrorCode::
CRYPTOHOME_ERROR_FINGERPRINT_ERROR_INTERNAL);
return;
}
std::move(callback).Run(reply->error());
......
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