net: fix off-by-one error in sorted xlat lookup
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 23 Dec 2018 22:12:36 +0000 (22:12 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 23 Dec 2018 22:12:36 +0000 (22:12 +0000)
commit476b03b33a9e4d0eb1a77fcb544c58b34d0e27b9
treee92a7d2f377ea6397655583be96a2fec34f47dea
parent73f565d1b836fa1d6af86efe7838f8407368508c
net: fix off-by-one error in sorted xlat lookup

* net.c (ax25_protocols): Decrement xlat size by one to account
for XLAT_END as other users of sorted xlats do.

Fixes: v4.25~28 "net: add support for AX.25 protocols and socket option names decoding"
net.c