summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-19 13:44:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-19 13:44:47 +0000
commitbf1713a5d0b11d2200559b98a71431f1e0657d6d (patch)
tree38e418f55b5e3e2bb567a0715544aff5ed057e49
parentd21a445561d365e3345cdbce40e39ab6340bff9a (diff)
downloadrsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.tar.gz
rsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.tar.xz
rsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.zip
bugfix: llDestroy() left the list with invalid root/last pointers
-rw-r--r--ChangeLog1
-rw-r--r--linkedlist.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d2d0483f..b1a87f13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}