mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
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. svn:r18064
This commit is contained in:
parent
dbc8a44bae
commit
0fe5ce423a
1 changed files with 1 additions and 0 deletions
|
@ -418,6 +418,7 @@ ht_string_hash(const char *s)
|
|||
#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); \
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue