diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-06-14 13:07:32 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-06-14 13:07:32 +0000 |
commit | 2112ef22ae40b421279221f77140f90e09308c39 (patch) | |
tree | 1e704e1ca6784ddd436963f39f71746e75253278 /syslogd.c | |
parent | f925aba4ad669c6b96b348c0761ed0531c6f41b4 (diff) | |
download | rsyslog-2112ef22ae40b421279221f77140f90e09308c39.tar.gz rsyslog-2112ef22ae40b421279221f77140f90e09308c39.tar.xz rsyslog-2112ef22ae40b421279221f77140f90e09308c39.zip |
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.
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'; |