diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-09-01 09:39:15 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-09-01 09:39:15 +0000 |
commit | 44feca439526c2511d34b5e5304a59e823a379e7 (patch) | |
tree | f648dde86fe6cb942a432de5a8c46bb7303771f2 /usr.sbin | |
parent | 7c181b7b2d881bf0f13f6d8a16c999872f60c331 (diff) |
Fix bad logic I introduced before commit.
Found by job@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/http.c | 6 |
1 files 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 <nils_fisher@hotmail.com> * Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org> @@ -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); } |