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.)
This commit is contained in:
Omar Polo 2021-09-24 08:08:49 +00:00
parent 79288c8b60
commit a91ad7f2ff
1 changed files with 0 additions and 3 deletions

View File

@ -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));