]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Wrong packet flags settings during frame building
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 17 Sep 2021 14:57:14 +0000 (16:57 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
We flag the packet as being ack-eliciting when building the frame.
But a wrong variable was used to to so.

src/quic_frame.c

index c06816fe60b1d00974d335e145e5a36f1196f921..0cbae59da72ed40eaae902d6844cab6a035667d4 100644 (file)
@@ -1016,7 +1016,7 @@ int qc_build_frm(unsigned char **buf, const unsigned char *end,
                return 0;
        }
 
-       pkt->flags |= builder[frm->type].flags;
+       pkt->flags |= builder->flags;
 
        return 1;
 }