summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-12-03 10:46:27 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2008-12-03 10:46:27 +0100
commitc5bfd2b24ca8c490401a0835ec741c05acf0ed3e (patch)
treeeb1e093a67a099483e2c9fead03adc6a24272a34
parent6b905b511b685f2ae28ef94d2e0ba14d1a3f4df3 (diff)
downloadrsyslog-c5bfd2b24ca8c490401a0835ec741c05acf0ed3e.tar.gz
rsyslog-c5bfd2b24ca8c490401a0835ec741c05acf0ed3e.tar.xz
rsyslog-c5bfd2b24ca8c490401a0835ec741c05acf0ed3e.zip
some cleanup (forgotten...)
-rw-r--r--runtime/parser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/parser.c b/runtime/parser.c
index 15dfd4e0..ec2a28c7 100644
--- a/runtime/parser.c
+++ b/runtime/parser.c
@@ -127,9 +127,6 @@ finalize_it:
/* in this case, we still need to check if the message is compressed. If so, we must
* tell the user we can not accept it.
*/
- //pszMsg = pMsg->pszRawMsg;
- //lenMsg = pMsg->iLenRawMsg;
- //if(lenMsg > 0 && *msg == 'z') {
if(pMsg->iLenRawMsg > 0 && *pMsg->pszRawMsg == 'z') {
errmsg.LogError(0, NO_ERRCODE, "Received a compressed message, but rsyslogd does not have compression "
"support enabled. The message will be ignored.");
@@ -295,7 +292,7 @@ rsRetVal parseMsg(msg_t *pMsg)
if(msg[0] == '1' && msg[1] == ' ') {
dbgprintf("Message has syslog-protocol format.\n");
setProtocolVersion(pMsg, 1);
- if(parseRFCSyslogMsg(pMsg, pMsg->msgFlags) == 1) { // TODO: parseRFC... should pull flags from pMsg
+ if(parseRFCSyslogMsg(pMsg, pMsg->msgFlags) == 1) {
msgDestruct(&pMsg);
ABORT_FINALIZE(RS_RET_ERR); // TODO: we need to handle these cases!
}