summaryrefslogtreecommitdiffstats
path: root/linkedlist.c
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 /linkedlist.c
parentd21a445561d365e3345cdbce40e39ab6340bff9a (diff)
downloadrsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.tar.gz
rsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.tar.xz
rsyslog-bf1713a5d0b11d2200559b98a71431f1e0657d6d.zip
bugfix: llDestroy() left the list with invalid root/last pointers
Diffstat (limited to 'linkedlist.c')
-rw-r--r--linkedlist.c3
1 files changed, 3 insertions, 0 deletions
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;
}