mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user