mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Allow service descriptors with no intro points
svn:r1557
This commit is contained in:
parent
8351847afd
commit
40f7324eea
@ -90,10 +90,6 @@ rend_service_descriptor_t *rend_parse_service_descriptor(
|
||||
cp += 4;
|
||||
if (end-cp < 2) goto truncated;
|
||||
result->n_intro_points = get_uint16(cp);
|
||||
if(result->n_intro_points < 1) {
|
||||
log_fn(LOG_WARN,"Service descriptor listed no intro points.");
|
||||
goto error;
|
||||
}
|
||||
result->intro_points = tor_malloc_zero(sizeof(char*)*result->n_intro_points);
|
||||
cp += 2;
|
||||
for (i=0;i<result->n_intro_points;++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user