From d880bdab9d96ab8c38af49ff84ba8467f72ae80c Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 10 Feb 2010 19:22:39 +0000 Subject: [PATCH] cmnd_reject() should return supplied reason, not hardcoded ISCSI_REASON_INVALID_PDU_FIELD Noticed by Alexey Obitotskiy 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 --- iscsi-scst/usr/iscsid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/usr/iscsid.c b/iscsi-scst/usr/iscsid.c index c07966a9f..a1d9e4bca 100644 --- a/iscsi-scst/usr/iscsid.c +++ b/iscsi-scst/usr/iscsid.c @@ -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;