diff options
author | 2020-09-25 20:24:32 +0000 | |
---|---|---|
committer | 2020-09-25 20:24:32 +0000 | |
commit | d52ff6db0e21473ed5e2ebd1e1fa1453ae7080cc (patch) | |
tree | dfcc2a294cfb534dd02d3dab3b76b69356de1e37 /lib/libssl/d1_both.c | |
parent | move test-tls13-finished.py from slow tests to normal tests. (diff) | |
download | wireguard-openbsd-d52ff6db0e21473ed5e2ebd1e1fa1453ae7080cc.tar.xz wireguard-openbsd-d52ff6db0e21473ed5e2ebd1e1fa1453ae7080cc.zip |
setpriority(2): don't treat booleans as scalars
The variable "found" in sys_setpriority() is used as a boolean.
We should set it to 1 to indicate that we found the object we
were looking for instead of incrementing it.
deraadt@ notes that the current code is not buggy, because OpenBSD
cannot support anywhere near 2^32 processes, but agrees that
incrementing the variable signals the wrong thing to the reader.
ok millert@ deraadt@
Diffstat (limited to 'lib/libssl/d1_both.c')
0 files changed, 0 insertions, 0 deletions