[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:
Willy Tarreau 2011-02-23 14:27:06 +01:00
parent dc23a92ee7
commit 17af419a01

View File

@ -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;