Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ZerXes
Tor
Commits
3b2943d8
Commit
3b2943d8
authored
Oct 07, 2003
by
Nick Mathewson
🎨
Browse files
lowercase exit policies.
svn:r556
parent
9e30ac28
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/routers.c
View file @
3b2943d8
...
...
@@ -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
]);
}
tmp
[
len
]
=
'\n'
;
tmp
[
len
+
1
]
=
'\0'
;
if
(
router_get_next_token
(
&
cp
,
&
tok
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment