summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-14 17:21:50 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-14 17:21:50 +0100
commitc0f5dd3fbf877799ac8fec4d00b2f2c69014b413 (patch)
tree93ad366c70f9013bb7298dd2cceedac2c6a31925 /parse.c
parent25a33416e9597087e16483859ecbdd6cdac2df64 (diff)
downloadrsyslog-c0f5dd3fbf877799ac8fec4d00b2f2c69014b413.tar.gz
rsyslog-c0f5dd3fbf877799ac8fec4d00b2f2c69014b413.tar.bz2
rsyslog-c0f5dd3fbf877799ac8fec4d00b2f2c69014b413.zip
bugfix: potential segfault at startup with property-based filter
If the property name was followed by a space before the comma, rsyslogd aborted on startup. Note that no segfault could happen if the initial startup went well (this was a problem with the config parser). closes: http://bugzilla.adiscon.com/show_bug.cgi?id=381
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 2d89030e..097e7470 100644
--- a/parse.c
+++ b/parse.c
@@ -262,7 +262,7 @@ rsRetVal parsDelimCStr(rsParsObj *pThis, cstr_t **ppCStr, char cDelim, int bTrim
pC = rsCStrGetBufBeg(pThis->pCStr) + pThis->iCurrPos;
- while(pThis->iCurrPos < rsCStrLen(pThis->pCStr) && *pC != cDelim && *pC != ' ') {
+ while(pThis->iCurrPos < rsCStrLen(pThis->pCStr) && *pC != cDelim) {
CHKiRet(cstrAppendChar(pCStr, bConvLower ? tolower(*pC) : *pC));
++pThis->iCurrPos;
++pC;