]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-fcgi: silence a gcc warning about null dereference
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 25 Sep 2019 19:21:57 +0000 (21:21 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 26 Sep 2019 09:07:39 +0000 (11:07 +0200)
Silence an impossible warning that gcc reports about a NULL dereference.

src/mux_fcgi.c

index 267fdf190f9d008ec6b7cad56b328c20861d8866..8094345c1fc461d38df01763729ebaf085c416a2 100644 (file)
@@ -3248,6 +3248,7 @@ static size_t fcgi_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t co
        while (fstrm->state < FCGI_SS_HLOC && !(fconn->flags & FCGI_SF_BLK_ANY) &&
               count && !htx_is_empty(htx)) {
                blk = htx_get_head_blk(htx);
+               ALREADY_CHECKED(blk);
                bsize = htx_get_blksz(blk);
 
                switch (htx_get_blk_type(blk)) {