projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc23a92
)
[BUG] acl: srv_id must return no match when the server is NULL
author
Willy Tarreau
<w@1wt.eu>
Wed, 23 Feb 2011 13:27:06 +0000
(14:27 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Wed, 23 Feb 2011 14:32:15 +0000
(15:32 +0100)
Reported by Hervé Commowick, causes crashes when the server is not known.
src/backend.c
patch
|
blob
|
history
diff --git
a/src/backend.c
b/src/backend.c
index
bd20749
..
c63bc3a
100644
(file)
--- a/
src/backend.c
+++ b/
src/backend.c
@@
-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;