BUG/MINOR: server: report correct error message for invalid port on "socks4"
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2020 09:25:54 +0000 (11:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2020 14:36:55 +0000 (16:36 +0200)
commitf75b42ae39b57c5ecdab5f4969241ab882aab88e
tree6c4601c0e2fef9a00eae925f310ffcc6352651c7
parent1d909c8ed9408da02045cda08908c3319acb9fcd
BUG/MINOR: server: report correct error message for invalid port on "socks4"

The socks4 keyword parser was a bit too much copy-pasted, it only checks
for a null port and reports "invalid range". Let's properly check for the
1-65535 range and report the correct error.

It may be backported everywhere "socks4" is present (2.0).

(cherry picked from commit 9743f709d03c036b7a6da2fb260d0e77f9e04a3d)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit e96489ea5e0408d852fc1dd4318926923916c230)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/server.c