diff --git a/rust/openvasd/src/scan.rs b/rust/openvasd/src/scan.rs index 8d636ae250..d0cf1d7515 100644 --- a/rust/openvasd/src/scan.rs +++ b/rust/openvasd/src/scan.rs @@ -152,7 +152,7 @@ impl ScanDeleter for OSPDWrapper { { let rtimeout = self.r_timeout; self.spawn_blocking(move |socket| { - osp::get_delete_scan_results(socket, rtimeout, id) + osp::delete_scan(socket, rtimeout, id) .map(|_| ()) .map_err(Error::from) })