bugfix: alice would crash if bob advertised 0 intro points

svn:r1559
This commit is contained in:
Roger Dingledine
2004-04-08 03:18:03 +00:00
parent 024c059fae
commit 3e7c8a40bc
+4
View File
@@ -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;