mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-03 18:09:25 +00:00
[BUG] acl: srv_id must return no match when the server is NULL
Reported by Herv Commowick, causes crashes when the server is not known.
This commit is contained in:
parent
dc23a92ee7
commit
17af419a01
@ -1403,6 +1403,9 @@ static int
|
||||
acl_fetch_srv_id(struct proxy *px, struct session *l4, void *l7, int dir,
|
||||
struct acl_expr *expr, struct acl_test *test) {
|
||||
|
||||
if (!l4->srv)
|
||||
return 0;
|
||||
|
||||
test->flags = ACL_TEST_F_READ_ONLY;
|
||||
|
||||
test->i = l4->srv->puid;
|
||||
|
Loading…
Reference in New Issue
Block a user