summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <>2023-04-07 22:18:42 +0000
committertb <>2023-04-07 22:18:42 +0000
commit8c59b060dbd812642d33997463995c866b0d7bdc (patch)
treeabe8c39392f60cafe4cdee922278974f1810d3fa /src/lib/libssl/ssl_lib.c
parentf593920787b705ac874bbd2f1c8be19129bd36ac (diff)
downloadopenbsd-8c59b060dbd812642d33997463995c866b0d7bdc.tar.gz
openbsd-8c59b060dbd812642d33997463995c866b0d7bdc.tar.bz2
openbsd-8c59b060dbd812642d33997463995c866b0d7bdc.zip
bn_test: handle rc consistently
Various test functions had bugs due to the fact that the return code would be set to 1 at the top so that each error would have to set rc = 0. This is silly. Fail closed instead by setting rc = 0 at the top and only flipping to 1 before the err label
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions