diff options
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 0a1c264527..ada1749bf5 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -29,9 +29,8 @@ static int ol_length=0; int onion_pending_add(circuit_t *circ) { struct onion_queue_t *tmp; - tmp = tor_malloc(sizeof(struct onion_queue_t)); + tmp = tor_malloc_zero(sizeof(struct onion_queue_t)); tmp->circ = circ; - tmp->next = NULL; if(!ol_tail) { tor_assert(!ol_list); |