]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: convert fin on push-frame as boolean
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Mar 2022 17:23:29 +0000 (18:23 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 25 Mar 2022 13:45:45 +0000 (14:45 +0100)
This is only useful to display a clear 0/1 value in the traces. This has
no impact beyond this cosmetic change.

src/mux_quic.c

index 3242d8f8d7b73ff1e8b57971ebf89eefaf6350dc..a7b3128066ac690dec5b3d91ee043f5f2bc35789 100644 (file)
@@ -638,7 +638,7 @@ static int qc_send(struct qcc *qcc)
 
                if (b_data(buf) || b_data(out)) {
                        int ret;
-                       char fin = qcs->flags & QC_SF_FIN_STREAM;
+                       char fin = !!(qcs->flags & QC_SF_FIN_STREAM);
 
                        ret = qcs_push_frame(qcs, out, buf, fin, &frms,
                                             qcc->tx.sent_offsets + total);