From ae298ec9409a890d27b12db5da0b202dd3bc2708 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Mon, 23 Sep 2013 13:14:43 +0200 Subject: [PATCH] Fix test to actually do what the comment says and send too low CmdSN. --- test-tool/test_iscsi_cmdsn_toolow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-tool/test_iscsi_cmdsn_toolow.c b/test-tool/test_iscsi_cmdsn_toolow.c index eb50524..e0cbd74 100644 --- a/test-tool/test_iscsi_cmdsn_toolow.c +++ b/test-tool/test_iscsi_cmdsn_toolow.c @@ -31,7 +31,7 @@ static int my_iscsi_queue_pdu(struct iscsi_context *iscsi, struct iscsi_pdu *pdu switch (change_cmdsn) { case 1: /* change the cmdsn so it becomes too big */ - scsi_set_uint32(&pdu->outdata.data[24], iscsi->expcmdsn + 1); + scsi_set_uint32(&pdu->outdata.data[24], iscsi->expcmdsn - 1); /* fudge the cmdsn value back to where it should be if this * pdu is ignored. */