[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] bugfix: alice would crash if bob advertised 0 intro points
- To: or-cvs@freehaven.net
- Subject: [or-cvs] bugfix: alice would crash if bob advertised 0 intro points
- From: arma@seul.org (Roger Dingledine)
- Date: Wed, 7 Apr 2004 23:18:05 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 07 Apr 2004 23:18:19 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
rendclient.c
Log Message:
bugfix: alice would crash if bob advertised 0 intro points
Index: rendclient.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendclient.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- rendclient.c 8 Apr 2004 02:24:06 -0000 1.28
+++ rendclient.c 8 Apr 2004 03:18:03 -0000 1.29
@@ -284,6 +284,10 @@
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;