diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-01 20:30:33 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-10 00:44:47 -0700 |
commit | c9607694c971a1f77531437ec61dc38c7d5d9ee3 (patch) | |
tree | 62b39cc5fc2b19423b8fb9acf6779763676b7243 /src/or/circuitmux_ewma.c | |
parent | 9d615cc5c0a645060781797b23a73df158a1dfb6 (diff) | |
download | tor-c9607694c971a1f77531437ec61dc38c7d5d9ee3.tar.gz tor-c9607694c971a1f77531437ec61dc38c7d5d9ee3.zip |
Correctly set magic numbers on ewma policy data/circuit data when allocating
Diffstat (limited to 'src/or/circuitmux_ewma.c')
-rw-r--r-- | src/or/circuitmux_ewma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitmux_ewma.c b/src/or/circuitmux_ewma.c index c918d6ff8a..9c26e1b2f3 100644 --- a/src/or/circuitmux_ewma.c +++ b/src/or/circuitmux_ewma.c @@ -226,6 +226,7 @@ ewma_alloc_cmux_data(circuitmux_t *cmux) tor_assert(cmux); pol = tor_malloc_zero(sizeof(*pol)); + pol->_base.magic = EWMA_POL_DATA_MAGIC; pol->active_circuit_pqueue = smartlist_new(); pol->active_circuit_pqueue_last_recalibrated = cell_ewma_get_tick(); @@ -278,6 +279,7 @@ ewma_alloc_circ_data(circuitmux_t *cmux, pol = TO_EWMA_POL_DATA(pol_data); cdata = tor_malloc_zero(sizeof(*cdata)); + cdata->_base.magic = EWMA_POL_CIRC_DATA_MAGIC; cdata->circ = circ; /* |