From 0b729fe41e193bf16d5bc5991954e40921ef661b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Tue, 28 Nov 2017 00:20:24 +0000 Subject: relay_load_fd() is no longer clobering errno in the error case so use fatal() instead of fatalx() --- usr.sbin/relayd/ca.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/relayd') 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 @@ -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"); -- cgit v1.2.3