From 083b2306995ff81858aa69563493664ded76f5cd Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Mon, 23 Jan 2023 15:57:14 +0100 Subject: [PATCH] MINOR: ssl: Remove debug fprintf in 'update ssl ocsp-response' cli command A debug fprintf was left behind in the new cli function. --- src/ssl_ocsp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ssl_ocsp.c b/src/ssl_ocsp.c index bda7a1b..1271f6e 100644 --- a/src/ssl_ocsp.c +++ b/src/ssl_ocsp.c @@ -1420,7 +1420,9 @@ static int cli_io_handler_update_ocsp_response(struct appctx *appctx) } } if (!found) { - fprintf(stderr, "Missing 'Content-Type: application/ocsp-response' header\n"); + chunk_printf(&trash, "Missing 'Content-Type: application/ocsp-response' header\n"); + if (applet_putchk(appctx, &trash) == -1) + goto more; goto end; } ctx->flags &= ~HC_F_RES_HDR; -- 1.7.10.4