diff options
author | tb <> | 2023-04-07 22:18:42 +0000 |
---|---|---|
committer | tb <> | 2023-04-07 22:18:42 +0000 |
commit | 8c59b060dbd812642d33997463995c866b0d7bdc (patch) | |
tree | abe8c39392f60cafe4cdee922278974f1810d3fa /src/lib/libssl/ssl_lib.c | |
parent | f593920787b705ac874bbd2f1c8be19129bd36ac (diff) | |
download | openbsd-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