From 2d3967cb4c69d628b31e15c4087bc19d0175d409 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 1 Sep 2021 09:39:14 +0000 Subject: [PATCH] Fix bad logic I introduced before commit. Found by job@ --- usr.sbin/rpki-client/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c index e528d25bdae..8d37c489b0e 100644 --- a/usr.sbin/rpki-client/http.c +++ b/usr.sbin/rpki-client/http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http.c,v 1.37 2021/09/01 08:09:41 claudio Exp $ */ +/* $OpenBSD: http.c,v 1.38 2021/09/01 09:39:14 claudio Exp $ */ /* * Copyright (c) 2020 Nils Fisher * Copyright (c) 2020 Claudio Jeker @@ -658,7 +658,7 @@ http_new(struct http_request *req) LIST_INSERT_HEAD(&active, conn, entry); http_conn_count++; - if (proxy.proxyhost == NULL) { + if (proxy.proxyhost != NULL) { if (http_resolv(&conn->res0, proxy.proxyhost, proxy.proxyport) == -1) { http_req_fail(req->id); @@ -796,7 +796,7 @@ http_connect_done(struct http_connection *conn) conn->res0 = NULL; conn->res = NULL; - if (proxy.proxyhost == NULL) + if (proxy.proxyhost != NULL) return proxy_connect(conn); return http_tls_connect(conn); } -- 2.20.1