diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-12-20 18:17:45 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-12-20 18:17:45 +0100 |
commit | 8d2f6675c47c0b7b6d7c644004507d0a85a90cb4 (patch) | |
tree | fc39d873b125fe66bd6b00849ef30628094a8f45 | |
parent | 5ba3fc7238c49f8317ba4d694091d8a191744ed5 (diff) | |
download | rsyslog-8d2f6675c47c0b7b6d7c644004507d0a85a90cb4.tar.gz rsyslog-8d2f6675c47c0b7b6d7c644004507d0a85a90cb4.tar.bz2 rsyslog-8d2f6675c47c0b7b6d7c644004507d0a85a90cb4.zip |
bugfix: stats counter were not properly initialized on creation
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | runtime/statsobj.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,6 @@ --------------------------------------------------------------------------- Version 5.8.7 [V5-stable] 2011-??-?? +- bugfix: stats counter were not properly initialized on creation - bugfix: potential abort after reading invalid X.509 certificate closes: http://bugzilla.adiscon.com/show_bug.cgi?id=290 Thanks to Tomas Heinrich for the patch diff --git a/runtime/statsobj.c b/runtime/statsobj.c index e1a89cf4..131605e0 100644 --- a/runtime/statsobj.c +++ b/runtime/statsobj.c @@ -154,9 +154,11 @@ addCounter(statsobj_t *pThis, uchar *ctrName, statsCtrType_t ctrType, void *pCtr switch(ctrType) { case ctrType_IntCtr: ctr->val.pIntCtr = (intctr_t*) pCtr; + *(ctr->val.pIntCtr) = 0; break; case ctrType_Int: ctr->val.pInt = (int*) pCtr; + *(ctr->val.pInt) = 0; break; } addCtrToList(pThis, ctr); |