pcpserver.c: fix "mapping removed" message for IPv6 pinhole

fixes #743
This commit is contained in:
Thomas Bernard 2024-05-30 01:40:37 +02:00
parent fbe0b19dcb
commit 52357a7d1c
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 2 additions and 2 deletions

View File

@ -1159,10 +1159,10 @@ static void DeletePCPMap(pcp_info_t *pcp_msg_info)
}
if (r >= 0) {
syslog(LOG_INFO, "PCP: %s port %hu mapping removed",
proto2==IPPROTO_TCP?"TCP":"UDP", eport2);
proto==IPPROTO_TCP?"TCP":"UDP", (pcp_msg_info->is_fw ? iport : eport2));
} else {
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->mapped_str, iport, (proto == IPPROTO_TCP)?"TCP":"UDP");
pcp_msg_info->result_code = PCP_ERR_NO_RESOURCES;
}
}