From 250a5e0d237571df28f7cce6bf7e665f2ae22935 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 12 Jan 2016 09:30:31 +0100 Subject: [PATCH] add log when unmapping PCP fails see #186 --- miniupnpd/pcpserver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniupnpd/pcpserver.c b/miniupnpd/pcpserver.c index 16e87b3..e796a66 100644 --- a/miniupnpd/pcpserver.c +++ b/miniupnpd/pcpserver.c @@ -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;