Fix breakage where we never were attaching SES devices because inq_len

was not being set > 0.
This commit is contained in:
Matt Jacob 2000-06-18 04:19:08 +00:00
parent 6b13b96dad
commit fb75f116db

View File

@ -749,6 +749,9 @@ ses_type(void *buf, int buflen)
{
unsigned char *iqd = buf;
if (buflen == 0)
buflen = 256; /* per SPC-2 */
if (buflen < 8+SEN_ID_LEN)
return (SES_NONE);