From ec7b5f2b80d406189119960b127aef00c14c16e2 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Mon, 28 Sep 2020 08:39:06 -0700 Subject: [PATCH] Fix ocsp/helper. (#5104) In #5103 I tweaked the help to allow customizing where the output goes, but I didn't ensure that the output field was always set. Also, I forgot to expand the `...v` parameter when passing it to Fprintf. --- test/ocsp/helper/helper.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ocsp/helper/helper.go b/test/ocsp/helper/helper.go index 44126060d..94e765e50 100644 --- a/test/ocsp/helper/helper.go +++ b/test/ocsp/helper/helper.go @@ -71,6 +71,7 @@ func ConfigFromFlags() Config { ignoreExpiredCerts: *ignoreExpiredCerts, expectStatus: *expectStatus, expectReason: *expectReason, + output: os.Stdout, } } @@ -330,7 +331,7 @@ func parseAndPrint(respBytes []byte, cert, issuer *x509.Certificate, config Conf } pr := func(s string, v ...interface{}) { - fmt.Fprintf(config.output, s, v) + fmt.Fprintf(config.output, s, v...) } pr("\n")