From 338a8e26f58c1c39a48a26e058809571752c060f Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 2 Dec 2012 10:05:32 -0800 Subject: [PATCH] When sending unsolicited data out, beginning of buffer to send is pdu->out_len, not pdu->offset. We might have already sent pdu->out_len amount of data as immediate data. --- lib/iscsi-command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iscsi-command.c b/lib/iscsi-command.c index 6273b82..204aaae 100644 --- a/lib/iscsi-command.c +++ b/lib/iscsi-command.c @@ -276,7 +276,7 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun, len = iscsi->first_burst_length - pdu->out_len; } iscsi_send_data_out(iscsi, pdu, 0xffffffff, - pdu->out_offset, len); + pdu->out_len, len); } /* remember cmdsn and itt so we can use task management */