manufacturer id is typically 4 bytes

This commit is contained in:
imp 2003-03-14 21:11:01 +00:00
parent 378be70959
commit 7740d7ce21

View File

@ -246,7 +246,7 @@ cis_info(struct cis *cp, unsigned char *p, int len)
static void
cis_manuf_id(struct cis *cp, unsigned char *p, int len)
{
if (len > 4) {
if (len >= 4) {
cp->manufacturer = tpl16(p);
cp->product = tpl16(p+2);
if (len == 5)