summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr.sbin/ocspcheck/ocspcheck.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c
index ea06c128c4..d9f7104bec 100644
--- a/src/usr.sbin/ocspcheck/ocspcheck.c
+++ b/src/usr.sbin/ocspcheck/ocspcheck.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocspcheck.c,v 1.26 2020/01/23 03:53:39 tb Exp $ */ 1/* $OpenBSD: ocspcheck.c,v 1.27 2020/09/04 04:17:46 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2017 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2017 Bob Beck <beck@openbsd.org>
@@ -707,9 +707,12 @@ main(int argc, char **argv)
707 * write out the DER format response to the staplefd 707 * write out the DER format response to the staplefd
708 */ 708 */
709 if (staplefd >= 0) { 709 if (staplefd >= 0) {
710 while (ftruncate(staplefd, 0) < 0) 710 while (ftruncate(staplefd, 0) < 0) {
711 if (errno == EINVAL)
712 break;
711 if (errno != EINTR && errno != EAGAIN) 713 if (errno != EINTR && errno != EAGAIN)
712 err(1, "Write of OCSP response failed"); 714 err(1, "Write of OCSP response failed");
715 }
713 w = 0; 716 w = 0;
714 written = 0; 717 written = 0;
715 while (written < instaplesz) { 718 while (written < instaplesz) {