summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2018-03-19 16:35:29 +0000
committerjsing <>2018-03-19 16:35:29 +0000
commit8c6dfc2988720b36cc1a8500c7f7693b2f9fff3e (patch)
tree82bd0590d7c0e2bdb0790f52fd45d6aa0bdc533f /src
parentc7be23675a7e4a025b9e5a5375aaed6139e653db (diff)
downloadopenbsd-8c6dfc2988720b36cc1a8500c7f7693b2f9fff3e.tar.gz
openbsd-8c6dfc2988720b36cc1a8500c7f7693b2f9fff3e.tar.bz2
openbsd-8c6dfc2988720b36cc1a8500c7f7693b2f9fff3e.zip
Remove the tls_init() call, since it is no longer necessary.
ok bcook@ beck@ inoguchi@
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/nc/netcat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index 867927de69..fcc38897cd 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: netcat.c,v 1.189 2017/11/28 16:59:10 jsing Exp $ */ 1/* $OpenBSD: netcat.c,v 1.190 2018/03/19 16:35:29 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * Copyright (c) 2015 Bob Beck. All rights reserved. 4 * Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -484,8 +484,6 @@ main(int argc, char *argv[])
484 } 484 }
485 485
486 if (usetls) { 486 if (usetls) {
487 if (tls_init() == -1)
488 errx(1, "unable to initialize TLS");
489 if ((tls_cfg = tls_config_new()) == NULL) 487 if ((tls_cfg = tls_config_new()) == NULL)
490 errx(1, "unable to allocate TLS config"); 488 errx(1, "unable to allocate TLS config");
491 if (Rflag && tls_config_set_ca_file(tls_cfg, Rflag) == -1) 489 if (Rflag && tls_config_set_ca_file(tls_cfg, Rflag) == -1)