summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorMoritz Buhl <mbuhl@cvs.openbsd.org>2022-11-10 00:44:13 +0000
committerMoritz Buhl <mbuhl@cvs.openbsd.org>2022-11-10 00:44:13 +0000
commit18e23b31c1ac97a368d10196173c58ea80a02e38 (patch)
treed56306462270c07ea435e8dc3ac3a77f65d700b5 /usr.sbin/relayd
parent612843fc25b761dc23f80937f033d8ac6bfcd5bf (diff)
In case RSA_meth_new fails, errstr would be passed to fatalx without
initialization. OK tb
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/ca.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/relayd/ca.c b/usr.sbin/relayd/ca.c
index 5a4e109499c..9f186e28df3 100644
--- a/usr.sbin/relayd/ca.c
+++ b/usr.sbin/relayd/ca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ca.c,v 1.39 2022/01/20 17:56:35 benno Exp $ */
+/* $OpenBSD: ca.c,v 1.40 2022/11/10 00:44:12 mbuhl Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@ -513,8 +513,10 @@ ca_engine_init(struct relayd *x_env)
if (rsa_default != NULL)
return;
- if ((rsae_method = RSA_meth_new("RSA privsep engine", 0)) == NULL)
+ if ((rsae_method = RSA_meth_new("RSA privsep engine", 0)) == NULL) {
+ errstr = "RSA_meth_new";
goto fail;
+ }
RSA_meth_set_pub_enc(rsae_method, rsae_pub_enc);
RSA_meth_set_pub_dec(rsae_method, rsae_pub_dec);