summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr.sbin/ocspcheck/ocspcheck.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c
index 5124d588b3..90a9143ee8 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.17 2017/02/25 23:48:08 beck Exp $ */ 1/* $OpenBSD: ocspcheck.c,v 1.18 2017/03/27 18:14:20 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2017 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -607,6 +607,9 @@ main(int argc, char **argv)
607 if (hget->bodypartsz <= 0) 607 if (hget->bodypartsz <= 0)
608 errx(1, "No body in reply from %s", host); 608 errx(1, "No body in reply from %s", host);
609 609
610 if (hget->code != 200)
611 errx(1, "http reply code %d from %s", hget->code, host);
612
610 /* 613 /*
611 * Validate the OCSP response we got back 614 * Validate the OCSP response we got back
612 */ 615 */