projects
/
haproxy-3.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d28d016
)
CLEANUP: http_ext: remove useless BUG_ON() in http_handle_xot_header()
author
Aurelien DARRAGON
<adarragon@haproxy.com>
Wed, 16 Oct 2024 09:40:00 +0000
(11:40 +0200)
committer
Aurelien 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
patch
|
blob
|
history
diff --git
a/src/http_ext.c
b/src/http_ext.c
index
15c6683
..
f74f1af
100644
(file)
--- a/
src/http_ext.c
+++ b/
src/http_ext.c
@@
-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;
}