mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't confuse the tuple code and the tuple length. Ooops. Since most
CIS are tiny, this likely hasn't bit anybody yet...
This commit is contained in:
parent
e12560dd4b
commit
209161a4f6
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ pccard_build_cis(const struct pccard_tuple *tuple, void *argp)
|
|||
cis->buffer[cis->len++] = tuple->code;
|
||||
return (0);
|
||||
}
|
||||
if (cis->len + 2 + tuple->code > sizeof(cis->buffer))
|
||||
if (cis->len + 2 + tuple->length > sizeof(cis->buffer))
|
||||
return (ENOSPC);
|
||||
cis->buffer[cis->len++] = tuple->code;
|
||||
cis->buffer[cis->len++] = tuple->length;
|
||||
|
|
|
|||
Loading…
Reference in a new issue