socks4_connect(): Fix the dstsize passed to strlcpy() in case of socks4a
authorFabian Keil <fk@fabiankeil.de>
Thu, 11 Sep 2025 11:54:17 +0000 (13:54 +0200)
committerFabian Keil <fk@fabiankeil.de>
Thu, 9 Oct 2025 09:51:07 +0000 (11:51 +0200)
commitb73d65ea904f50a5f00ccb3dff5fa66e515ca991
tree5bd0bc7f4924749d142ff25a1c948f9e1e661eeb
parent95d78480997c8567a30927ca0dad0b759feda8ff
socks4_connect(): Fix the dstsize passed to strlcpy() in case of socks4a

Previously we would substract sizeof(struct socks_op) twice
as it's already part of csiz. While this was wrong it didn't
cause any actual problems as the buffer size is so large that
it didn't matter.

Reported by: Joshua Rogers
gateway.c