]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
don't mind empty exit policy entries
authorRoger Dingledine <arma@torproject.org>
Thu, 23 Sep 2004 22:57:32 +0000 (22:57 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 23 Sep 2004 22:57:32 +0000 (22:57 +0000)
svn:r2373

src/or/config.c

index 4a746116f722aa1f6384edec905e2ca4ac702814..9b7afee2f2937e495633dddcdefefb5d3a9174a1 100644 (file)
@@ -999,7 +999,7 @@ config_parse_exit_policy(struct config_line_t *cfg,
 
   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);