summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile2
-rw-r--r--ider.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index a021a17..1e1c3e9 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -75,7 +75,7 @@ distclean: clean
amtterm: amtterm.o redir.o tcp.o auth.o ssl.o ider.o
amtider: amtider.o redir.o tcp.o auth.o ssl.o ider.o
-gamt: gamt.o redir.o tcp.o parseconfig.o auth.o ssl.o
+gamt: gamt.o redir.o tcp.o parseconfig.o auth.o ssl.o ider.o
#################################################################
diff --git a/ider.c b/ider.c
index f53f9b0..f1f5f65 100644
--- a/ider.c
+++ b/ider.c
@@ -96,14 +96,14 @@ int ider_handle_command(struct redir *r, unsigned int seqno,
switch (cdb[0]) {
case TEST_UNIT_READY:
return ider_packet_sense(r, seqno, device, 0, 0, 0);
- case MODE_SENSE_6:
+ case MODE_SENSE:
if (cdb[2] != 0x3f || cdb[3] != 0x00)
return ider_packet_sense(r, seqno, device, 0x05, 0x24, 0x00);
resp[0] = 0;
resp[1] = 0x05;
resp[2] = 0x80;
resp[3] = 0;
- return ider
+ return ider_data_to_host(r, seqno, resp, 4);
default:
break;
}