From b734f94bdf6ff555a2747b855ffd2e10de881705 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 18 May 2022 11:25:32 +0200 Subject: [PATCH] pcpserver.c: improve DeletePCPMap() error message --- miniupnpd/pcpserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpd/pcpserver.c b/miniupnpd/pcpserver.c index fe29602..7ed9932 100644 --- a/miniupnpd/pcpserver.c +++ b/miniupnpd/pcpserver.c @@ -1147,8 +1147,8 @@ static void DeletePCPMap(pcp_info_t *pcp_msg_info) syslog(LOG_INFO, "PCP: %s port %hu mapping removed", proto2==IPPROTO_TCP?"TCP":"UDP", eport2); } else { - syslog(LOG_ERR, "Failed to remove PCP mapping internal port %hu, protocol %s", - iport, (pcp_msg_info->protocol == IPPROTO_TCP)?"TCP":"UDP"); + syslog(LOG_ERR, "Failed to remove PCP mapping to %s:%hu %s", + pcp_msg_info->mapped_str, iport, (pcp_msg_info->protocol == IPPROTO_TCP)?"TCP":"UDP"); pcp_msg_info->result_code = PCP_ERR_NO_RESOURCES; } }