commit
940b36b94b
|
@ -843,14 +843,19 @@ static void CreatePCPMap(pcp_info_t *pcp_msg_info)
|
|||
} else {
|
||||
if (_upnp_delete_redir(pcp_msg_info->ext_port,
|
||||
pcp_msg_info->protocol)==0) {
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
pcp_msg_info->ext_port++;
|
||||
}
|
||||
} while (r==0);
|
||||
|
||||
if (pcp_msg_info->ext_port == 0) {
|
||||
if ((pcp_msg_info->ext_port == 0) ||
|
||||
(IN6_IS_ADDR_V4MAPPED(pcp_msg_info->int_ip) &&
|
||||
(!check_upnp_rule_against_permissions(upnppermlist,
|
||||
num_upnpperm, pcp_msg_info->ext_port,
|
||||
((struct in_addr*)pcp_msg_info->int_ip->s6_addr)[3],
|
||||
pcp_msg_info->int_port)))) {
|
||||
pcp_msg_info->result_code = PCP_ERR_CANNOT_PROVIDE_EXTERNAL;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue