diff options
author | 2018-03-19 16:35:29 +0000 | |
---|---|---|
committer | 2018-03-19 16:35:29 +0000 | |
commit | 53d08fdad9331996c5321853eb382045e4235297 (patch) | |
tree | cd0a4969a18a88c125eb9eb04c8d31d2a88b42e7 | |
parent | Automatically handle library initialisation for libtls. (diff) | |
download | wireguard-openbsd-53d08fdad9331996c5321853eb382045e4235297.tar.xz wireguard-openbsd-53d08fdad9331996c5321853eb382045e4235297.zip |
Remove the tls_init() call, since it is no longer necessary.
ok bcook@ beck@ inoguchi@
-rw-r--r-- | usr.bin/nc/netcat.c | 4 |
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) |