cmnd_reject() should return supplied reason, not hardcoded ISCSI_REASON_INVALID_PDU_FIELD

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: http://svn.code.sf.net/p/scst/svn/trunk@1495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-02-10 19:22:39 +00:00
parent 8ed82e1dbe
commit d880bdab9d

View 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;