mirror of https://github.com/omar-polo/gmid.git
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:
parent
79288c8b60
commit
a91ad7f2ff
3
server.c
3
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));
|
||||
|
|
Loading…
Reference in New Issue