From: Alan T. DeKok Date: Sun, 26 Jul 2015 12:02:25 +0000 (-0400) Subject: Use correct VP for port information X-Git-Tag: release_3_0_10~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4867bacbfb39c8be0727517a1fe1bc334bcfd046;p=thirdparty%2Ffreeradius-server.git Use correct VP for port information --- diff --git a/src/main/process.c b/src/main/process.c index f138448c29c..04b96c3631a 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -2800,7 +2800,6 @@ static int request_will_proxy(REQUEST *request) */ } else if (((vp = fr_pair_find_by_num(request->config, PW_PACKET_DST_IP_ADDRESS, 0, TAG_ANY)) != NULL) || ((vp = fr_pair_find_by_num(request->config, PW_PACKET_DST_IPV6_ADDRESS, 0, TAG_ANY)) != NULL)) { - VALUE_PAIR *port; uint16_t dst_port; fr_ipaddr_t dst_ipaddr; @@ -2816,8 +2815,8 @@ static int request_will_proxy(REQUEST *request) dst_ipaddr.prefix = 128; } - port = fr_pair_find_by_num(request->config, PW_PACKET_DST_PORT, 0, TAG_ANY); - if (!port) { + vp = fr_pair_find_by_num(request->config, PW_PACKET_DST_PORT, 0, TAG_ANY); + if (!vp) { if (request->packet->code == PW_CODE_ACCESS_REQUEST) { dst_port = PW_AUTH_UDP_PORT;