diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-01-23 16:07:15 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-23 16:07:15 -0500 |
commit | d95d9889463fcab0eac742b1634d64f1e8b4328a (patch) | |
tree | 2797f73c1b39e1ef67760a986c4ac9a332921fb4 /src/or/confparse.c | |
parent | c4cc11a9df48defe73eccfa8296e7553bfd4da50 (diff) | |
parent | 83307fc267e7de5fd3a9ccc0c51d6d377f454495 (diff) | |
download | tor-d95d9889463fcab0eac742b1634d64f1e8b4328a.tar.gz tor-d95d9889463fcab0eac742b1634d64f1e8b4328a.zip |
Merge branch 'feature_20956_029'
Diffstat (limited to 'src/or/confparse.c')
-rw-r--r-- | src/or/confparse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/confparse.c b/src/or/confparse.c index 1706fa85e2..92a66a4b5a 100644 --- a/src/or/confparse.c +++ b/src/or/confparse.c @@ -1159,6 +1159,11 @@ config_dump(const config_format_t *fmt, const void *default_options, config_get_assigned_option(fmt, options, fmt->vars[i].name, 1); for (; line; line = line->next) { + if (!strcmpstart(line->key, "__")) { + /* This check detects "hidden" variables inside LINELIST_V structures. + */ + continue; + } smartlist_add_asprintf(elements, "%s%s %s\n", comment_option ? "# " : "", line->key, line->value); |