diff options
author | eric <eric@openbsd.org> | 2021-01-21 22:02:17 +0000 |
---|---|---|
committer | eric <eric@openbsd.org> | 2021-01-21 22:02:17 +0000 |
commit | b609dc207f77b06cdcee8131df6ee989310eadcf (patch) | |
tree | 4cad862ac178139e653b5ecc739bd0d3d55b5a28 /lib/libtls | |
parent | Ignore special keys returned by the curses getch() function. (diff) | |
download | wireguard-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.c | 4 |
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 |