diff options
author | 2021-03-28 09:19:47 +1100 | |
---|---|---|
committer | 2021-04-13 15:47:30 +1000 | |
commit | 68de77e987c33ef3f9a8cfa9ce6d85d0798f9784 (patch) | |
tree | 81a0890852dc02d06ab3bfbfcebd00524916db3b /gnu/llvm/clang/docs/analyzer/checkers/unix_api_example.c | |
parent | Allow setting keepalive while interface is down (diff) | |
download | wireguard-openbsd-68de77e987c33ef3f9a8cfa9ce6d85d0798f9784.tar.xz wireguard-openbsd-68de77e987c33ef3f9a8cfa9ce6d85d0798f9784.zip |
Check iter != NULL
The problem with checking peer != NULL is that we already dereference
iter to get i_value. This is what was caught in the index == 0 bug
reported on bugs@. Instead, we should assert that iter != NULL.
This is likely to be removed when adjusting wg_noise.c in the not to
distant future.
Diffstat (limited to 'gnu/llvm/clang/docs/analyzer/checkers/unix_api_example.c')
0 files changed, 0 insertions, 0 deletions