PDU avoid incrementing itt to 0xffffffff
This patch avoid incrementing itt to 0xffffffff which is a reserved value for immediate pdus. Avoid incrementing it to 0xfffffff to avoid unexpected behaviour. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -1067,7 +1067,7 @@ iscsi_process_login_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
|
||||
if ((in->hdr[1] & ISCSI_PDU_LOGIN_TRANSIT)
|
||||
&& (in->hdr[1] & ISCSI_PDU_LOGIN_NSG_FF) == ISCSI_PDU_LOGIN_NSG_FF) {
|
||||
iscsi->is_loggedin = 1;
|
||||
iscsi->itt++;
|
||||
iscsi_itt_post_increment(iscsi);
|
||||
iscsi->header_digest = iscsi->want_header_digest;
|
||||
ISCSI_LOG(iscsi, 2, "login successful");
|
||||
pdu->callback(iscsi, SCSI_STATUS_GOOD, NULL, pdu->private_data);
|
||||
|
||||
Reference in New Issue
Block a user