diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-08-27 09:08:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-08-28 09:42:17 -0400 |
commit | cb5f8ace79813fd835d4bb396dd693b39b1063e4 (patch) | |
tree | 799252681adfb4a8e2fb4ca226e63d506bec4bfd /src/app | |
parent | aa3f0c4788c5cb07243a764589c912a8ed4a26cd (diff) | |
download | tor-cb5f8ace79813fd835d4bb396dd693b39b1063e4.tar.gz tor-cb5f8ace79813fd835d4bb396dd693b39b1063e4.zip |
Tests for config_find_option_name()
Fix a bug in config_find_option_name() where it did not consider
the abbreviations table.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/confparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c index 8b2b53003f..5c994c0a6a 100644 --- a/src/app/config/confparse.c +++ b/src/app/config/confparse.c @@ -493,6 +493,7 @@ config_mgr_find_var(const config_mgr_t *mgr, const char * config_find_option_name(const config_mgr_t *mgr, const char *key) { + key = config_expand_abbrev(mgr, key, 0, 0); const managed_var_t *mv = config_mgr_find_var(mgr, key, true, NULL); if (mv) return mv->cvar->member.name; |