Commit 3b2943d8 authored by Nick Mathewson's avatar Nick Mathewson 🎨
Browse files

lowercase exit policies.

parent 9e30ac28
......@@ -952,11 +952,13 @@ int router_add_exit_policy_from_string(routerinfo_t *router,
directory_token_t tok;
char *tmp, *cp;
int r;
int len;
int len, idx;
len = strlen(s);
tmp = cp = tor_malloc(len+2);
strcpy(tmp, s);
for (idx = 0; idx < len; ++idx) {
tmp[idx] = tolower(s[idx]);
if (router_get_next_token(&cp, &tok)) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment