diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2017-11-28 00:20:24 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2017-11-28 00:20:24 +0000 |
commit | 0b729fe41e193bf16d5bc5991954e40921ef661b (patch) | |
tree | 22279001fee556e071f03602f40fee5bd1ba5f10 /usr.sbin/relayd | |
parent | c7e82f358bd0e80e19d2f44a092e330d8c32aff5 (diff) |
relay_load_fd() is no longer clobering errno in the error case so use
fatal() instead of fatalx()
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/ca.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/relayd/ca.c b/usr.sbin/relayd/ca.c index ee07b70ccf7..48e068e4c6b 100644 --- a/usr.sbin/relayd/ca.c +++ b/usr.sbin/relayd/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.30 2017/11/27 23:05:50 bluhm Exp $ */ +/* $OpenBSD: ca.c,v 1.31 2017/11/28 00:20:23 claudio Exp $ */ /* * Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org> @@ -123,7 +123,7 @@ ca_launch(void) if (rlay->rl_tls_cert_fd != -1) { if ((buf = relay_load_fd(rlay->rl_tls_cert_fd, &len)) == NULL) - fatalx("ca_launch: cert relay_load_fd"); + fatal("ca_launch: cert relay_load_fd"); if ((in = BIO_new_mem_buf(buf, len)) == NULL) fatalx("ca_launch: cert BIO_new_mem_buf"); @@ -160,7 +160,7 @@ ca_launch(void) if (rlay->rl_tls_cacert_fd != -1) { if ((buf = relay_load_fd(rlay->rl_tls_cacert_fd, &len)) == NULL) - fatalx("ca_launch: cacert relay_load_fd"); + fatal("ca_launch: cacert relay_load_fd"); if ((in = BIO_new_mem_buf(buf, len)) == NULL) fatalx("ca_launch: cacert BIO_new_mem_buf"); |