libiscsi: fix dangling pointer for outqueue_current
The outqueue_current PDU might also be in waitpdu if it does not have ISCSI_PDU_DELETE_WHEN_SENT. outqueue_current is freed after the waitpdu list (for reconnect or defer_reconnect), or sometimes not considered at all (for cancel), and this can cause a dangling pointer. Keep outqueue_current up to date when a PDU is freed. A bit hacky, but it avoids touching code all over the place. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Peter Lieven
parent
4e129d385c
commit
ce0723320c
Reference in New Issue
Block a user