Skip to content

Commit

Permalink
Remove redundant NULL check
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonWilley committed Dec 11, 2024
1 parent 00386c7 commit 2039d63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ssl_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -4174,10 +4174,7 @@ static int wolfSSL_CTX_use_certificate_ex(WOLFSSL_CTX* ctx,
CERT_TYPE, NULL, NULL, 0, GET_VERIFY_SETTING_CTX(ctx));

exit:
if (certData != NULL) {
XFREE(certData, ctx->heap, DYNAMIC_TYPE_CERT);
}

XFREE(certData, ctx->heap, DYNAMIC_TYPE_CERT);
return ret;
}

Expand Down

0 comments on commit 2039d63

Please sign in to comment.