From 353e3c8ebe516943a38d051a0bf390bb6116574c Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Fri, 24 Sep 2021 08:16:28 +0000 Subject: [PATCH] style --- server.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server.c b/server.c index 14991b8..473e111 100644 --- a/server.c +++ b/server.c @@ -665,17 +665,17 @@ handle_open_conn(int fd, short ev, void *d) return; } - if (!trim_req_iri(c->req, &parse_err) - || !parse_iri(c->req, &c->iri, &parse_err) - || !puny_decode(c->iri.host, decoded, sizeof(decoded), &parse_err)) { + if (!trim_req_iri(c->req, &parse_err) || + !parse_iri(c->req, &c->iri, &parse_err) || + !puny_decode(c->iri.host, decoded, sizeof(decoded), &parse_err)) { log_info(c, "iri parse error: %s", parse_err); start_reply(c, BAD_REQUEST, "invalid request"); return; } - if (c->iri.port_no != conf.port - || strcmp(c->iri.schema, "gemini") - || strcmp(decoded, c->domain)) { + if (c->iri.port_no != conf.port || + strcmp(c->iri.schema, "gemini") || + strcmp(decoded, c->domain)) { start_reply(c, PROXY_REFUSED, "won't proxy request"); return; }