summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorbeck <>2020-09-19 14:15:38 +0000
committerbeck <>2020-09-19 14:15:38 +0000
commit68a66b91bb79ab939073198e9c822a826bd09b96 (patch)
tree04976360e8ec5999cfad6fadd5c5f503b720ab51 /src/lib
parentecd45aad00b8302c0634f02c3fe281a9e68c54ed (diff)
downloadopenbsd-68a66b91bb79ab939073198e9c822a826bd09b96.tar.gz
openbsd-68a66b91bb79ab939073198e9c822a826bd09b96.tar.bz2
openbsd-68a66b91bb79ab939073198e9c822a826bd09b96.zip
remove superfluous NULL check
ok tb@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c
index a1a9ecc5af..5ab3eaeda1 100644
--- a/src/lib/libcrypto/x509/x509_verify.c
+++ b/src/lib/libcrypto/x509/x509_verify.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_verify.c,v 1.10 2020/09/16 05:47:59 jsing Exp $ */ 1/* $OpenBSD: x509_verify.c,v 1.11 2020/09/19 14:15:38 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -824,7 +824,7 @@ x509_verify(struct x509_verify_ctx *ctx, X509 *leaf, char *name)
824{ 824{
825 struct x509_verify_chain *current_chain; 825 struct x509_verify_chain *current_chain;
826 826
827 if (ctx == NULL || ctx->roots == NULL || ctx->max_depth == 0) { 827 if (ctx->roots == NULL || ctx->max_depth == 0) {
828 ctx->error = X509_V_ERR_INVALID_CALL; 828 ctx->error = X509_V_ERR_INVALID_CALL;
829 return 0; 829 return 0;
830 } 830 }