diff options
author | Omar Polo <op@omarpolo.com> | 2021-09-24 08:08:49 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-09-24 08:08:49 +0000 |
commit | a91ad7f2ffac3f1cec0c6c42e780ab5efc92ba5c (patch) | |
tree | 2c96fd671c33d03d604015e709573539c0993e86 /server.c | |
parent | 79288c8b6077a573243c4654e3b3c4948febdb99 (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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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)); |