]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: sink: Remove useless test on SE_FL_SHR/SHW flags
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 23 Jul 2024 17:02:29 +0000 (19:02 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 24 Jul 2024 15:58:35 +0000 (17:58 +0200)
Re-apply dcd917d972 ("MINOR: applet: Remove uselelss test on SE_FL_SHR/SHW
flags") for sink_forward_oc_io_handler() function as it was probably
overlooked given that sink_forward_oc_io_handler() and
sink_forward_io_handler() follow the same logic.

src/sink.c

index 57002c0984502aa3d806bef8618cd72f9ec3cb7d..b1e63e1d855c8b715008b54fb85f0c8074736032 100644 (file)
@@ -424,7 +424,7 @@ static void sink_forward_oc_io_handler(struct appctx *appctx)
        size_t ofs, last_ofs;
        int ret = 0;
 
-       if (unlikely(se_fl_test(appctx->sedesc, (SE_FL_EOS|SE_FL_ERROR|SE_FL_SHR|SE_FL_SHW))))
+       if (unlikely(se_fl_test(appctx->sedesc, (SE_FL_EOS|SE_FL_ERROR))))
                goto out;
 
        /* if stopping was requested, close immediately */