Fix missing return value checks
Ensure that all functions have their return values checked where appropriate. This covers all functions defined and called from within libssl. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
@@ -693,7 +693,10 @@ int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file)
|
||||
int r;
|
||||
unsigned long err;
|
||||
|
||||
SSL_CTX_clear_chain_certs(ctx);
|
||||
if(!SSL_CTX_clear_chain_certs(ctx)) {
|
||||
ret = 0;
|
||||
goto end;
|
||||
}
|
||||
|
||||
while ((ca = PEM_read_bio_X509(in, NULL,
|
||||
ctx->default_passwd_callback,
|
||||
|
Reference in New Issue
Block a user