cmnd_reject() should return supplied reason, not hardcoded ISCSI_REASON_INVALID_PDU_FIELD
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 10 Feb 2010 19:22:39 +0000 (19:22 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 10 Feb 2010 19:22:39 +0000 (19:22 +0000)
Noticed by Alexey Obitotskiy <alexeyo1@open-e.com>

This line, and those below, will be ignored--

M    trunk/iscsi-scst/usr/iscsid.c

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1495 d57e44dd-8a1f-0410-8b47-8ef2f437770f

iscsi-scst/usr/iscsid.c

index c07966a..a1d9e4b 100644 (file)
@@ -586,7 +586,7 @@ static void cmnd_reject(struct connection *conn, u8 reason)
 
        memset(rej, 0x0, sizeof *rej);
        rej->opcode = ISCSI_OP_REJECT_MSG;
-       rej->reason = ISCSI_REASON_INVALID_PDU_FIELD;
+       rej->reason = reason;
        rej->ffffffff = ISCSI_RESERVED_TAG;
        rej->flags |= ISCSI_FLG_FINAL;