From 68b3cab718aaff5652843c4f44d3cbacac316bcb Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 22 Sep 2015 11:36:09 +0200 Subject: [PATCH] add a warning syslog() in parsePCPOptions --- miniupnpd/pcpserver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniupnpd/pcpserver.c b/miniupnpd/pcpserver.c index 43bca5c..83b75dd 100644 --- a/miniupnpd/pcpserver.c +++ b/miniupnpd/pcpserver.c @@ -540,6 +540,9 @@ static void parsePCPOptions(void* pcp_buf, int remain, pcp_info_t *pcp_msg_info) remain -= option_length; pcp_buf += option_length; } + if (remain > 0) { + syslog(LOG_WARNING, "%s: remain=%d", "parsePCPOptions", remain); + } }