]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl-ckch: Stop to test CF_WRITE_ERROR to commit CA/CRL file
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 26 Jan 2023 07:03:39 +0000 (08:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 Feb 2023 08:43:38 +0000 (09:43 +0100)
This change was performed on all applet I/O handlers but one was missed. In
the CLI I/O handler used to commit a CA/CRL file, we can remove the test on
CF_WRITE_ERROR because there is already a test on CF_SHUTW.

src/ssl_ckch.c

index 7d07cad71b2577bef2a6a5c9bb69c28e61fc098a..6342787a95973dd1c78155cf66575afd573d1907 100644 (file)
@@ -2824,7 +2824,7 @@ static int cli_io_handler_commit_cafile_crlfile(struct appctx *appctx)
        struct ckch_inst_link *ckchi_link;
        char *path;
 
-       if (unlikely(sc_ic(sc)->flags & (CF_WRITE_ERROR|CF_SHUTW)))
+       if (unlikely(sc_ic(sc)->flags & CF_SHUTW))
                goto end;
 
        /* The ctx was already validated by the ca-file/crl-file parsing