summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2018-03-19 16:35:30 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2018-03-19 16:35:30 +0000
commite4584fce152f4b3efdb4ca4c3700b069e0cfefbf (patch)
treeab69b01a29f1f5cd9eee4831ca73ddf3c14e9961 /usr.bin
parente5b15998b53658b5112d19489195587493931cea (diff)
Remove the tls_init() call, since it is no longer necessary.
ok bcook@ beck@ inoguchi@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nc/netcat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index 867927de69f..fcc38897cd9 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.189 2017/11/28 16:59:10 jsing Exp $ */
+/* $OpenBSD: netcat.c,v 1.190 2018/03/19 16:35:29 jsing Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
* Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -484,8 +484,6 @@ main(int argc, char *argv[])
}
if (usetls) {
- if (tls_init() == -1)
- errx(1, "unable to initialize TLS");
if ((tls_cfg = tls_config_new()) == NULL)
errx(1, "unable to allocate TLS config");
if (Rflag && tls_config_set_ca_file(tls_cfg, Rflag) == -1)