]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
SCSI reply buffer was not cleared before INQUIRY was executed.
authorToni Wilen <twilen@winuae.net>
Thu, 17 Sep 2015 16:14:51 +0000 (19:14 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 17 Sep 2015 16:14:51 +0000 (19:14 +0300)
scsi.cpp

index 6104adbdf031c6a57d7aa99d9659279d994818c7..5c7a71f5323bde7f8b38062c6b9c4effaa7e21d8 100644 (file)
--- a/scsi.cpp
+++ b/scsi.cpp
@@ -303,6 +303,7 @@ static bool handle_ca(struct scsi_data *sd)
                        // command was aborted due to UA
                        sd->unit_attention = 0;
                }
+               memset(sd->reply, 0, sizeof(sd->reply));
                return true;
        }