[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r18064: {tor} Fix a harmless-to-us bug in ht.h. There was a field that _HT (tor/trunk/src/common)
Author: nickm
Date: 2009-01-10 09:40:43 -0500 (Sat, 10 Jan 2009)
New Revision: 18064
Modified:
tor/trunk/src/common/ht.h
Log:
Fix a harmless-to-us bug in ht.h.
There was a field that _HT_FOI_INSERT was never setting. Everything that calls _HT_FOI_INSERT was setting it via tor_malloc_zero, but that's fragile.
Modified: tor/trunk/src/common/ht.h
===================================================================
--- tor/trunk/src/common/ht.h 2009-01-10 14:38:14 UTC (rev 18063)
+++ tor/trunk/src/common/ht.h 2009-01-10 14:40:43 UTC (rev 18064)
@@ -418,6 +418,7 @@
#define _HT_FOI_INSERT(field, head, elm, newent, var) \
{ \
newent->field.hte_hash = (elm)->field.hte_hash; \
+ newent->field.hte_next = NULL; \
*var = newent; \
++((head)->hth_n_entries); \
}