the buffer is also used when there is no input
This commit is contained in:
parent
fccc687bdd
commit
a5a0a2d000
4
external/bsd/iscsi/dist/src/lib/target.c
vendored
4
external/bsd/iscsi/dist/src/lib/target.c
vendored
@ -321,9 +321,7 @@ scsi_command_t(target_session_t *sess, uint8_t *header)
|
||||
* there is input data and set the length of the input to
|
||||
* either scsi_cmd.trans_len or scsi_cmd.bidi_trans_len,
|
||||
* depending on whether scsi_cmd.output was set. */
|
||||
if (scsi_cmd.input) {
|
||||
scsi_cmd.send_data = sess->buff;
|
||||
}
|
||||
scsi_cmd.send_data = sess->buff;
|
||||
scsi_cmd.input = 0;
|
||||
cmd.scsi_cmd = &scsi_cmd;
|
||||
cmd.callback = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user