summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)