From 13d65ad0bb7945635ebc508cca7933e6a0a79b56 Mon Sep 17 00:00:00 2001 From: "Alan M. Carroll" Date: Wed, 7 Oct 2020 14:55:51 -0500 Subject: [PATCH] Remove useless if for port set assertion. --- proxy/http/HttpSM.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index aaad7b5f04d..611e2732be7 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -4861,12 +4861,7 @@ HttpSM::do_http_server_open(bool raw) t_state.req_flavor == HttpTransact::REQ_FLAVOR_REVPROXY); ink_assert(pending_action == nullptr); - - if (false == t_state.api_server_addr_set) { - ink_assert(t_state.current.server->dst_addr.host_order_port() > 0); - } else { - ink_assert(t_state.current.server->dst_addr.port() != 0); // verify the plugin set it to something. - } + ink_assert(t_state.current.server->dst_addr.port() != 0); char addrbuf[INET6_ADDRPORTSTRLEN]; SMDebug("http", "[%" PRId64 "] open connection to %s: %s", sm_id, t_state.current.server->name,