]> git.proxmox.com Git - proxmox-backup.git/commit
tools::sgutils2: don't transmute to a Box
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Jan 2021 13:48:27 +0000 (14:48 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Jan 2021 13:48:27 +0000 (14:48 +0100)
commit68c087d578901823280aa5a7d13d998f01440ebe
treed196f11e9c5155b8c2131c19452fc4569430fb47
parentd6bf87cab7218590745001e28420e068b79b62de
tools::sgutils2: don't transmute to a Box

Otherwise we run the drop handler for the scsi pt object AND
the box itself, which shouldn't even work as it should be
doing a double-free (unless the library does some kind of
reference counting in which case this should simply crash
later on?)

anyway, let's make a wrapper simply called `SgPt` containing
the pointer from `construct_scsi_pt_obj()`

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/tools/sgutils2.rs