aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-09-24 08:08:49 +0000
committerOmar Polo <op@omarpolo.com>2021-09-24 08:08:49 +0000
commita91ad7f2ffac3f1cec0c6c42e780ab5efc92ba5c (patch)
tree2c96fd671c33d03d604015e709573539c0993e86 /server.c
parent79288c8b6077a573243c4654e3b3c4948febdb99 (diff)
drop unnecessary bzero
the whole struct client is already memset'd to 0 in do_accept. handle_handshake doesn't touch the request or iri buffer in the code path that leads to handle_open_conn. (It does so in the error router alone.)
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/server.c b/server.c
index 0ee2266..14991b8 100644
--- a/server.c
+++ b/server.c
@@ -650,9 +650,6 @@ handle_open_conn(int fd, short ev, void *d)
const char *parse_err = "invalid request";
char decoded[DOMAIN_NAME_LEN];
- bzero(c->req, sizeof(c->req));
- bzero(&c->iri, sizeof(c->iri));
-
switch (tls_read(c->ctx, c->req, sizeof(c->req)-1)) {
case -1:
log_err(c, "tls_read: %s", tls_error(c->ctx));