[or-cvs] don"t mind empty exit policy entries
Roger Dingledine
arma at seul.org
Thu Sep 23 22:57:34 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
config.c
Log Message:
don't mind empty exit policy entries
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- config.c 23 Sep 2004 19:23:32 -0000 1.158
+++ config.c 23 Sep 2004 22:57:32 -0000 1.159
@@ -999,7 +999,7 @@
entries = smartlist_create();
for (; cfg; cfg = cfg->next) {
- smartlist_split_string(entries,cfg->value,",",SPLIT_SKIP_SPACE,0);
+ smartlist_split_string(entries,cfg->value,",",SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK,0);
SMARTLIST_FOREACH(entries, const char *, ent, {
log_fn(LOG_DEBUG,"Adding new entry '%s'",ent);
*nextp = router_parse_exit_policy_from_string(ent);
More information about the tor-commits
mailing list