From b609dc207f77b06cdcee8131df6ee989310eadcf Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 21 Jan 2021 22:02:17 +0000 Subject: [PATCH] return -1 on error for consistency ok tb@ --- lib/libtls/tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c index 02ddf447fb3..5e02b5a4275 100644 --- a/lib/libtls/tls.c +++ b/lib/libtls/tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.c,v 1.86 2021/01/21 19:09:10 eric Exp $ */ +/* $OpenBSD: tls.c,v 1.87 2021/01/21 22:02:17 eric Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -439,7 +439,7 @@ tls_configure_ssl_keypair(struct tls *ctx, SSL_CTX *ssl_ctx, err: EVP_PKEY_free(pkey); - return (1); + return (-1); } int -- 2.20.1