PVE::ReplicationTools:sync_disk - use $lastsync instead of $job->{lastsync}

Because tghis is the parsed (untainted) value, and we pass this a parameter
to cleanup_snapshot.
This commit is contained in:
Dietmar Maurer
2017-05-08 07:39:47 +02:00
parent 81fa35e539
commit c9a16105d4

View File

@ -237,7 +237,7 @@ sub sync_guest {
# delet old snapshot if exists
cleanup_snapshot($disks_status, $snapname, $storage_config, $running, $ip, $lastsync) if
$job->{lastsync} != 0;
$lastsync != 0;
$job->{lastsync} = $snap_time;
$job->{state} = "ok";