diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-07-11 18:11:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-07-11 18:11:54 +0000 |
commit | 63f9a8baa2046ef437717c2b440756e1ed946ba0 (patch) | |
tree | 2711474ab8ee6f50d926812c1f096283e0a59244 /src/or/control.c | |
parent | 50a206e800e6a9cee121ad6193bfc48db89910e8 (diff) | |
download | tor-63f9a8baa2046ef437717c2b440756e1ed946ba0.tar.gz tor-63f9a8baa2046ef437717c2b440756e1ed946ba0.zip |
Canonicalize option names even on defaulted options.
svn:r4530
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c index 9d117b70b2..c2e3e90bf2 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -694,9 +694,10 @@ handle_control_getconf(connection_t *conn, uint32_t body_len, const char *body) } else { struct config_line_t *answer = config_get_assigned_option(options,q); if (!v0 && !answer) { - size_t alen = strlen(q)+8; + const char *name = config_option_get_canonical_name(q); + size_t alen = strlen(name)+8; char *astr = tor_malloc(alen); - tor_snprintf(astr, alen, "250-%s\r\n", q); + tor_snprintf(astr, alen, "250-%s\r\n", name); smartlist_add(answers, astr); } |