From c10e73967f2fc81e7c08f4e41ce52b4f6a89de22 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 17 Sep 2015 19:14:51 +0300 Subject: [PATCH] SCSI reply buffer was not cleared before INQUIRY was executed. --- scsi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scsi.cpp b/scsi.cpp index 6104adbd..5c7a71f5 100644 --- 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; } -- 2.47.3