summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-06-14 13:07:32 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-06-14 13:07:32 +0000
commit2112ef22ae40b421279221f77140f90e09308c39 (patch)
tree1e704e1ca6784ddd436963f39f71746e75253278 /syslogd.c
parentf925aba4ad669c6b96b348c0761ed0531c6f41b4 (diff)
downloadrsyslog-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.c3
1 files changed, 2 insertions, 1 deletions
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';