| Date: Wed, 14 Aug 2024 16:22:44 +0200
Do proper initialisation of traverse and traversec.
This caused in TLS mode that traversec was polluted.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- |
| @@ -172,7 +172,8 @@ handlerequest(int sock, char *req, int rlen, char *base, char *ohost,
memset(recvc, 0, sizeof(recvc));
memset(args, 0, sizeof(args));
memset(argsc, 0, sizeof(argsc));
- memset(traverse, 0, sizeof(argsc));
+ memset(traverse, 0, sizeof(traverse));
+ memset(traversec, 0, sizeof(traversec));
maxrecv = sizeof(recvb) - 1;
if (rlen > maxrecv || rlen < 0) |