diff options
author | 2017-09-15 19:29:28 +0000 | |
---|---|---|
committer | 2017-09-15 19:29:28 +0000 | |
commit | bd42128be7e8eb50ae3846fd30af7dbb541ddc27 (patch) | |
tree | 023cf2542e7eeac1afe16287eedac95747ca1021 /lib/libc | |
parent | Coverity complained that the while loop at the end of m_adj() could (diff) | |
download | wireguard-openbsd-bd42128be7e8eb50ae3846fd30af7dbb541ddc27.tar.xz wireguard-openbsd-bd42128be7e8eb50ae3846fd30af7dbb541ddc27.zip |
Coverity complains that top == NULL was checked and further down
top->m_pkthdr.len was accessed without check. See CID 1452933.
In fact top cannot be NULL there and the condition was always false.
m_getuio() did never reserve space for the header. The correct
check is m == top to find the first mbuf.
OK visa@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions