diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 13:44:47 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 13:44:47 +0000 |
commit | bf1713a5d0b11d2200559b98a71431f1e0657d6d (patch) | |
tree | 38e418f55b5e3e2bb567a0715544aff5ed057e49 | |
parent | d21a445561d365e3345cdbce40e39ab6340bff9a (diff) | |
download | rsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.tar.gz rsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.tar.bz2 rsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.zip |
bugfix: llDestroy() left the list with invalid root/last pointers
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | linkedlist.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,7 @@ --------------------------------------------------------------------------- Version 2.0.0 (rgerhards), 2007-12-?? - small doc fix for $IncludeConfig +- fixed a bug in llDestroy() --------------------------------------------------------------------------- Version 1.21.0 (rgerhards), 2007-12-19 - GSS-API support for syslog/TCP connections was added. Thanks to diff --git a/linkedlist.c b/linkedlist.c index bea2cb90..27d6db36 100644 --- a/linkedlist.c +++ b/linkedlist.c @@ -104,6 +104,9 @@ rsRetVal llDestroy(linkedList_t *pThis) llDestroyElt(pThis, pEltPrev); } + pThis->pRoot = NULL; + pThis->pLast = NULL; + return iRet; } |