miniupnpd/pcpserver.c: return error code if PCP mapping fails
This change causes CreatePCPMap to return a PCP_ERR_NO_RESOURCES response when upnp_redirect_internal does not succeed; previously, no error code was returned in this case.
This commit is contained in:
parent
2ee9c05843
commit
408a0b55f6
|
@ -897,6 +897,8 @@ static void CreatePCPMap(pcp_info_t *pcp_msg_info)
|
|||
pcp_msg_info->int_port,
|
||||
desc);
|
||||
|
||||
pcp_msg_info->result_code = PCP_ERR_NO_RESOURCES;
|
||||
|
||||
} else {
|
||||
syslog(LOG_INFO, "PCP MAP: added mapping %s %hu->%s:%hu '%s'",
|
||||
(pcp_msg_info->protocol==IPPROTO_TCP)?"TCP":"UDP",
|
||||
|
|
Loading…
Reference in New Issue