Check for null callback before start captive portal probe
If CaptivePortalDetector::Cancel() is called after CaptivePortalDetector::DetectCaptivePortal() is run but before CaptivePortalDetector::StartProbe is run, |detection_callback_| is reset but a probe is still started. This causes a DCHECK fail or null dereference. Check for null |detection_callback_| before starting a probe. Bug: 993388 Change-Id: I46cc2a5fb226cd2a96443387103648617068b065 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1753162Reviewed-by:Matt Menke <mmenke@chromium.org> Reviewed-by:
Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:
Steven Bennetts <stevenjb@chromium.org> Commit-Queue: Matthew Wang <matthewmwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#687338}
Showing
Please register or sign in to comment