summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2021-07-14 13:33:58 +0000
committerkn <kn@cvs.openbsd.org>2021-07-14 13:33:58 +0000
commitb7fd9c519af47607fd45dbe6c53ce93bb54552e9 (patch)
treef099fd0993fc920ef5fbd7a6bbf85e2527533993 /usr.sbin/relayd
parentb72d54390aa00f39d2c6a8433803bb650e7de983 (diff)
Remove unneeded calls to tls_init(3)
As per the manual and lib/libtls/tls.c revision 1.79 from 2018 "Automatically handle library initialisation for libtls." initialisation is handled automatically by other tls_*(3) functions. Remove explicit tls_init() calls from base to not give the impression of it being needed. Feedback tb OK Tests mestre
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/config.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/relayd/config.c b/usr.sbin/relayd/config.c
index 3e60d63ef52..d982f356cb3 100644
--- a/usr.sbin/relayd/config.c
+++ b/usr.sbin/relayd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.41 2019/09/15 19:23:29 rob Exp $ */
+/* $OpenBSD: config.c,v 1.42 2021/07/14 13:33:57 kn Exp $ */
/*
* Copyright (c) 2011 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -296,8 +296,6 @@ config_getcfg(struct relayd *env, struct imsg *imsg)
ssl_init(env);
if (what & CONFIG_CA_ENGINE)
ca_engine_init(env);
- if (tls_init() == -1)
- fatalx("unable to initialize TLS");
}
if (privsep_process != PROC_PARENT)