summaryrefslogtreecommitdiffstats
path: root/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-09-25 20:24:32 +0000
committercheloha <cheloha@openbsd.org>2020-09-25 20:24:32 +0000
commitd52ff6db0e21473ed5e2ebd1e1fa1453ae7080cc (patch)
treedfcc2a294cfb534dd02d3dab3b76b69356de1e37 /lib/libssl/d1_both.c
parentmove test-tls13-finished.py from slow tests to normal tests. (diff)
downloadwireguard-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