From 98b0a757b2ab868f60e2d2ebddcc72e1a8ede663 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 1 Aug 2012 13:44:03 +1000 Subject: [PATCH] R2T: Reset datasn to 0 everytime we start a new sequence from r2t --- lib/scsi-command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scsi-command.c b/lib/scsi-command.c index bad64ac..a96582e 100644 --- a/lib/scsi-command.c +++ b/lib/scsi-command.c @@ -503,6 +503,7 @@ iscsi_process_r2t(struct iscsi_context *iscsi, struct iscsi_pdu *pdu, offset = ntohl(*(uint32_t *)&in->hdr[40]); len = ntohl(*(uint32_t *)&in->hdr[44]); + pdu->datasn = 0; iscsi_send_data_out(iscsi, pdu, ttt, offset, len); return 0; }