mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
[MEDIUM] Correct ipmask() logic
The netmask applied to table entries as configured using ipmask() is stored in arg_p->data.ip not arg_i (which will be 1 if the netmask is set).
This commit is contained in:
parent
8b7b05a92d
commit
d281eedc07
1 changed files with 1 additions and 1 deletions
|
|
@ -556,7 +556,7 @@ static int pattern_conv_str2upper(const struct pattern_arg *arg_p, int arg_i, un
|
|||
/* takes the netmask in arg_i */
|
||||
static int pattern_conv_ipmask(const struct pattern_arg *arg_p, int arg_i, union pattern_data *data)
|
||||
{
|
||||
data->ip.s_addr &= arg_i;
|
||||
data->ip.s_addr &= arg_p->data.ip.s_addr;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue