rbd-mirror: potential nullptr dereference in ImageReplayer::handle_start_replay

Signed-off-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
Mykola Golub 2019-09-20 09:25:01 +01:00
parent a363dea882
commit a01597b00f

View File

@ -639,7 +639,9 @@ void ImageReplayer<I>::handle_start_replay(int r) {
reschedule_update_status_task(30);
if (on_replay_interrupted()) {
on_finish->complete(r);
if (on_finish != nullptr) {
on_finish->complete(r);
}
return;
}