add a warning syslog() in parsePCPOptions

This commit is contained in:
Thomas Bernard 2015-09-22 11:36:09 +02:00
parent c87809a608
commit 68b3cab718
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
}