diff options
author | Roger Dingledine <arma@torproject.org> | 2005-07-22 00:18:25 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-07-22 00:18:25 +0000 |
commit | 3333d27f41e5717e7724abd621be17aabd0881fb (patch) | |
tree | 3a3bcfa67882754dad4bf45858e3b5b3b101a7e2 | |
parent | 1efeb3908a6e501b950d52ed5e410d2cc933e700 (diff) | |
download | tor-3333d27f41e5717e7724abd621be17aabd0881fb.tar.gz tor-3333d27f41e5717e7724abd621be17aabd0881fb.zip |
we were mangling memory because we weren't allocing enough
for the hidserv desc
nick can you check that this is enough now?
svn:r4628
-rw-r--r-- | src/or/rendcommon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 40f416fff1..6b101a2150 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -53,7 +53,7 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc, char *end; int i; size_t asn1len; - cp = *str_out = tor_malloc(PK_BYTES*2*(desc->n_intro_points+1)); /*Too long, but ok*/ + cp = *str_out = tor_malloc(PK_BYTES*2*(desc->n_intro_points+2)); /*Too long, but ok*/ end = cp + PK_BYTES*2*(desc->n_intro_points+1); if (version) { *(uint8_t*)cp = (uint8_t)0xff; |