mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 21:44:58 +02:00
Don't segfault when checking whether a not-yet-used intro point should expire
Found by katmagic. Bugfix on the #3460 branch, not yet in any release.
This commit is contained in:
parent
c06c80b7f7
commit
5ffa7102c0
@ -1957,7 +1957,8 @@ intro_point_should_expire_now(rend_intro_point_t *intro,
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (digestmap_size(intro->accepted_intro_rsa_parts) >=
|
||||
if (intro->accepted_intro_rsa_parts != NULL &&
|
||||
digestmap_size(intro->accepted_intro_rsa_parts) >=
|
||||
INTRO_POINT_LIFETIME_INTRODUCTIONS) {
|
||||
/* This intro point has been used too many times. Expire it now. */
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user