Treat boolean functions as booleans

Use "!x" instead of "x <= 0", as these functions never return a negative
value.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Rob Percival
2016-03-07 18:38:06 +00:00
committed by Rich Salz
parent 8c92c4eac0
commit 70073f3e3a
5 changed files with 16 additions and 25 deletions

View File

@@ -1669,7 +1669,7 @@ int s_client_main(int argc, char **argv)
goto end;
}
if (ctx_set_ctlog_list_file(ctx, ctlog_file) <= 0) {
if (!ctx_set_ctlog_list_file(ctx, ctlog_file)) {
ERR_print_errors(bio_err);
goto end;
}