From a6dac7f3fc954bd3eac151bdc87f9f3b798a4f28 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 15 Feb 2017 14:56:42 +0000 Subject: Avoid dereferencing a pointer when reporting an error about the same pointer being NULL. Found by jsg@ with cppcheck; also detected by Coverity. --- src/lib/libssl/ssl_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 7e752ae0d0..65b26209b8 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.156 2017/02/07 02:08:38 beck Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.157 2017/02/15 14:56:42 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -886,7 +886,7 @@ int SSL_check_private_key(const SSL *ssl) { if (ssl == NULL) { - SSLerror(ssl, ERR_R_PASSED_NULL_PARAMETER); + SSLerrorx(ERR_R_PASSED_NULL_PARAMETER); return (0); } if (ssl->cert == NULL) { -- cgit v1.2.3-55-g6feb