diff options
author | Roger Dingledine <arma@torproject.org> | 2005-10-29 19:13:48 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-10-29 19:13:48 +0000 |
commit | 44b3f3060a863a9297fdbe722bd7bf8c00e70653 (patch) | |
tree | 788a754468f090ce105ccdd897774d3a0c1703fe /src/or/command.c | |
parent | bf2be9abd75c2057e2f8f75c0480c2699c6299a5 (diff) | |
download | tor-44b3f3060a863a9297fdbe722bd7bf8c00e70653.tar.gz tor-44b3f3060a863a9297fdbe722bd7bf8c00e70653.zip |
make circ->onionskin a pointer, not a static array. moria2 was using
125000 circuit_t's after it had been up for a few weeks, which translates
to 20+ megs of wasted space.
svn:r5333
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/command.c b/src/or/command.c index 2c971734c0..75a4ab98a2 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -200,6 +200,7 @@ command_process_create_cell(cell_t *cell, connection_t *conn) circ->purpose = CIRCUIT_PURPOSE_OR; circ->state = CIRCUIT_STATE_ONIONSKIN_PENDING; if (cell->command == CELL_CREATE) { + circ->onionskin = tor_malloc(ONIONSKIN_CHALLENGE_LEN); memcpy(circ->onionskin, cell->payload, ONIONSKIN_CHALLENGE_LEN); /* hand it off to the cpuworkers, and then return */ |