소스 검색

don't mind empty exit policy entries

svn:r2373
Roger Dingledine 21 년 전
부모
커밋
57d7857def
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);