mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
bugfix: alice would crash if bob advertised 0 intro points
svn:r1559
This commit is contained in:
parent
024c059fae
commit
3e7c8a40bc
@ -284,6 +284,10 @@ char *rend_client_get_random_intro(char *query) {
|
||||
smartlist_add(sl,entry->parsed->intro_points[i]);
|
||||
|
||||
choice = smartlist_choose(sl);
|
||||
if(!choice) {
|
||||
smartlist_free(sl);
|
||||
return NULL;
|
||||
}
|
||||
nickname = tor_strdup(choice);
|
||||
smartlist_free(sl);
|
||||
return nickname;
|
||||
|
Loading…
Reference in New Issue
Block a user