mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-05 10:58:14 +00:00
BUG/MINOR: auth: fix wrong return type in pat_match_auth()
Commit 5338eea
("MEDIUM: pattern: The match function browse itself the
list or the tree") changed the return type of pattern matching functions.
One enum was left over in pat_match_auth(). Fortunately, this one equals
zero where a null pointer is expected, so it's cast correctly.
This detected and reported by Charles Carter was introduced in 1.5-dev23,
no backport is needed.
This commit is contained in:
parent
ed44649eb7
commit
86e0fc1739
@ -267,7 +267,7 @@ pat_match_auth(struct sample *smp, struct pattern_expr *expr, int fill)
|
||||
|
||||
/* Check if the userlist is present in the context data. */
|
||||
if (!ul)
|
||||
return PAT_NOMATCH;
|
||||
return NULL;
|
||||
|
||||
/* Browse the userlist for searching user. */
|
||||
for (u = ul->users; u; u = u->next) {
|
||||
|
Loading…
Reference in New Issue
Block a user