From 2112ef22ae40b421279221f77140f90e09308c39 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 14 Jun 2007 13:07:32 +0000 Subject: re-wrote syslog.c from scratch to solve a license compatibility issue, provide some bug fixes and performance enhancemnts. Also required changes to klogd.c to support the new interface. --- syslogd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'syslogd.c') diff --git a/syslogd.c b/syslogd.c index 938f7c3a..f42c16b3 100644 --- a/syslogd.c +++ b/syslogd.c @@ -1442,12 +1442,13 @@ static int TCPSessDataRcvd(int iTCPSess, char *pData, int iLen) * rgerhards, 2006-12-19 */ if(isdigit(*pData)) { + int iCnt; /* the frame count specified */ TCPSessions[iTCPSess].eFraming = TCP_FRAMING_OCTET_COUNTING; /* in this mode, we have OCTET-COUNT SP MSG - so we now need * to extract the OCTET-COUNT and the SP and then extract * the msg. */ - int iCnt = 0; /* the frame count specified */ + iCnt = 0; /* IETF20061218 int iNbrOctets = 0; / * number of octets already consumed */ while(isdigit(*pData)) { iCnt = iCnt * 10 + *pData - '0'; -- cgit