autofs-5.1.9 - Fix masks in parse_sub.c, so that hosts are correctly matched.
In the case local address is 10.x.x.x and one of the replica addresses
is 138.x.x.x, MASK_A will make both equal, and get_priority will return
PROXIMITY_NET, which is not correct.
MASK_A = 0x7F000000 = 01111111 00000000 00000000 00000000
LOCAL = 10.x.x.x = 00001010 00000000 00000000 00000000
REMOTE = 138.x.x.x = 10001010 00000000 00000000 00000000
Signed-off-by: Thiago Becker <tbecker@redhat.com>
Signed-off-by: Ian Kent <raven@themaw.net>
2 files changed