add log when unmapping PCP fails

see #186
This commit is contained in:
Thomas Bernard 2016-01-12 09:30:31 +01:00
parent e405f78b89
commit 250a5e0d23
1 changed files with 2 additions and 0 deletions

View File

@ -1097,6 +1097,8 @@ static void DeletePCPMap(pcp_info_t *pcp_msg_info)
if(0 != strcmp(desc, pcp_msg_info->desc)) {
/* nonce does not match */
pcp_msg_info->result_code = PCP_ERR_NOT_AUTHORIZED;
syslog(LOG_ERR, "desc not matching : '%s' != '%s'",
desc, pcp_msg_info->desc);
syslog(LOG_ERR, "Unauthorized to remove PCP mapping internal port %hu, protocol %s",
iport, (pcp_msg_info->protocol == IPPROTO_TCP)?"TCP":"UDP");
return;