summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-08-27 09:08:51 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-28 09:42:17 -0400
commitcb5f8ace79813fd835d4bb396dd693b39b1063e4 (patch)
tree799252681adfb4a8e2fb4ca226e63d506bec4bfd /src/app
parentaa3f0c4788c5cb07243a764589c912a8ed4a26cd (diff)
downloadtor-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.c1
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;