Explorar o código

don't mind empty exit policy entries

svn:r2373
Roger Dingledine %!s(int64=21) %!d(string=hai) anos
pai
achega
57d7857def
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/config.c

+ 1 - 1
src/or/config.c

@@ -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);