Introduction
Introduction Statistics Contact Development Disclaimer Help
Do proper initialisation of traverse and traversec. - geomyidae - a small C-bas…
git clone git://git.codemadness.org/geomyidae
Log
Files
Refs
README
LICENSE
---
commit 5a8f1faeaec51bba6d25196b653c6df7ce75e87e
parent 51959f2e295b12a6549278709954f6630655602a
Author: Christoph Lohmann <[email protected]>
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 <[email protected]>
Diffstat:
M main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/main.c b/main.c
@@ -172,7 +172,8 @@ handlerequest(int sock, char *req, int rlen, char *base, ch…
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)
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.