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
686fce45
Commit
686fce45
authored
Oct 07, 2003
by
Nick Mathewson
🎨
Browse files
Stop requiring newline at end of exit policy.
svn:r554
parent
499bbe72
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/routers.c
View file @
686fce45
...
...
@@ -952,8 +952,13 @@ int router_add_exit_policy_from_string(routerinfo_t *router,
directory_token_t
tok
;
char
*
tmp
,
*
cp
;
int
r
;
int
len
;
tmp
=
cp
=
tor_strdup
(
s
);
len
=
strlen
(
s
);
tmp
=
cp
=
tor_malloc
(
len
+
2
);
strcpy
(
tmp
,
s
);
tmp
[
len
]
=
'\n'
;
tmp
[
len
+
1
]
=
'\0'
;
if
(
router_get_next_token
(
&
cp
,
&
tok
))
{
log_fn
(
LOG_WARNING
,
"Error reading exit policy: %s"
,
tok
.
val
.
error
);
free
(
tmp
);
...
...
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