From 68a66b91bb79ab939073198e9c822a826bd09b96 Mon Sep 17 00:00:00 2001 From: beck <> Date: Sat, 19 Sep 2020 14:15:38 +0000 Subject: remove superfluous NULL check ok tb@ --- src/lib/libcrypto/x509/x509_verify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') 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 @@ -/* $OpenBSD: x509_verify.c,v 1.10 2020/09/16 05:47:59 jsing Exp $ */ +/* $OpenBSD: x509_verify.c,v 1.11 2020/09/19 14:15:38 beck Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -824,7 +824,7 @@ x509_verify(struct x509_verify_ctx *ctx, X509 *leaf, char *name) { struct x509_verify_chain *current_chain; - if (ctx == NULL || ctx->roots == NULL || ctx->max_depth == 0) { + if (ctx->roots == NULL || ctx->max_depth == 0) { ctx->error = X509_V_ERR_INVALID_CALL; return 0; } -- cgit v1.2.3-55-g6feb