mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
rbd-mirror: potential nullptr dereference in ImageReplayer::handle_start_replay
Signed-off-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
parent
a363dea882
commit
a01597b00f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user