diff options
author | 2017-08-22 10:41:59 +0000 | |
---|---|---|
committer | 2017-08-22 10:41:59 +0000 | |
commit | fcfa777a34d81ddb99a6b6917d30d4b8589f4cf1 (patch) | |
tree | ea684b5fbb9545404f2f809bab583bba04ca1e1d /sys/netinet6 | |
parent | explain new new COMPILER (diff) | |
download | wireguard-openbsd-fcfa777a34d81ddb99a6b6917d30d4b8589f4cf1.tar.xz wireguard-openbsd-fcfa777a34d81ddb99a6b6917d30d4b8589f4cf1.zip |
Fix negative array index read. Coverity CID 1453243 and 1453334.
Check if cp->dev value is invalid prior to using it as an array index and only
then make the assignment si = &as->source_info[cp->dev].
OK tb@ and jsg@
Diffstat (limited to 'sys/netinet6')
0 files changed, 0 insertions, 0 deletions