From: eric Date: Thu, 21 Jan 2021 22:02:17 +0000 (+0000) Subject: return -1 on error for consistency X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b609dc207f77b06cdcee8131df6ee989310eadcf;p=openbsd return -1 on error for consistency ok tb@ --- 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