]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: Remove debug fprintf in 'update ssl ocsp-response' cli command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 23 Jan 2023 14:57:14 +0000 (15:57 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 25 Jan 2023 10:51:39 +0000 (11:51 +0100)
A debug fprintf was left behind in the new cli function.

src/ssl_ocsp.c

index bda7a1be9e422383aab15396c20e8002a16b3926..1271f6e406a1282769eed84676afc5700e4d02b5 100644 (file)
@@ -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;