summaryrefslogtreecommitdiffstats
path: root/lib/libtls
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2021-01-21 22:02:17 +0000
committereric <eric@openbsd.org>2021-01-21 22:02:17 +0000
commitb609dc207f77b06cdcee8131df6ee989310eadcf (patch)
tree4cad862ac178139e653b5ecc739bd0d3d55b5a28 /lib/libtls
parentIgnore special keys returned by the curses getch() function. (diff)
downloadwireguard-openbsd-b609dc207f77b06cdcee8131df6ee989310eadcf.tar.xz
wireguard-openbsd-b609dc207f77b06cdcee8131df6ee989310eadcf.zip
return -1 on error for consistency
ok tb@
Diffstat (limited to 'lib/libtls')
-rw-r--r--lib/libtls/tls.c4
1 files 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 <jsing@openbsd.org>
*
@@ -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