[or-cvs] Canonicalize option names even on defaulted options.

Nick Mathewson nickm at seul.org
Mon Jul 11 18:11:56 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv5635/src/or

Modified Files:
	control.c 
Log Message:
Canonicalize option names even on defaulted options.

Index: control.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- control.c	29 Jun 2005 21:46:55 -0000	1.98
+++ control.c	11 Jul 2005 18:11:54 -0000	1.99
@@ -694,9 +694,10 @@
     } 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);
       }
 



More information about the tor-commits mailing list