]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: http_ext: remove useless BUG_ON() in http_handle_xot_header()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 16 Oct 2024 09:40:00 +0000 (11:40 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 17 Oct 2024 15:25:06 +0000 (17:25 +0200)
A useless BUG_ON() statement was let in a conditional block that already
checks that the condition cannot be met within the block. Remove the
useless BUG_ON()

src/http_ext.c

index 15c6683e9413449cca905e953e9e6f8d17c5b743..f74f1af901427c868b463ac91035459fbb6c337e 100644 (file)
@@ -870,7 +870,6 @@ int http_handle_xot_header(struct stream *s, struct channel *req)
        }
        if (s->be->http_ext && s->be->http_ext->xot) {
                /* backend */
-               BUG_ON(!s->be->http_ext);
                b_xot = s->be->http_ext->xot;
        }