diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-08-29 19:41:08 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-08-29 19:41:08 +0200 |
commit | dd8f16beb555b8d46a7d5157743c762fb4a37068 (patch) | |
tree | a7c27926fc19d632f21e996229b9346aa1dbf759 /src | |
parent | 64f393d56f8ff58223db56f3b8e64f0074877616 (diff) | |
download | tor-dd8f16beb555b8d46a7d5157743c762fb4a37068.tar.gz tor-dd8f16beb555b8d46a7d5157743c762fb4a37068.zip |
Avoid segfault when accessing hidden service.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/rendclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c index a5d7c1016e..5e3c20e807 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -94,6 +94,7 @@ rend_client_send_introduction(origin_circuit_t *introcirc, } }); if (!intro_key) { + int num_intro_points = smartlist_len(entry->parsed->intro_nodes); if (rend_cache_lookup_entry(introcirc->rend_data->onion_address, 0, &entry) > 0) { log_warn(LD_BUG, "We have both a v0 and a v2 rend desc for this " @@ -109,7 +110,7 @@ rend_client_send_introduction(origin_circuit_t *introcirc, } else { log_warn(LD_BUG, "Internal error: could not find intro key; we " "only have a v2 rend desc with %d intro points.", - smartlist_len(entry->parsed->intro_nodes)); + num_intro_points); goto err; } } |