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
Mike Perry
Tor
Commits
cf6159ab
Commit
cf6159ab
authored
Aug 18, 2004
by
Roger Dingledine
Browse files
fix a seg fault on hup when FascistFirewall is defined
svn:r2294
parent
8ddc029d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
cf6159ab
...
...
@@ -548,6 +548,7 @@ static void free_options(or_options_t *options) {
if
(
options
->
FirewallPorts
)
{
SMARTLIST_FOREACH
(
options
->
FirewallPorts
,
char
*
,
cp
,
tor_free
(
cp
));
smartlist_free
(
options
->
FirewallPorts
);
options
->
FirewallPorts
=
NULL
;
}
}
...
...
@@ -800,8 +801,8 @@ int getconfig(int argc, char **argv, or_options_t *options) {
if
(
options
->
FascistFirewall
&&
!
options
->
FirewallPorts
)
{
options
->
FirewallPorts
=
smartlist_create
();
smartlist_add
(
options
->
FirewallPorts
,
"80"
);
smartlist_add
(
options
->
FirewallPorts
,
"443"
);
smartlist_add
(
options
->
FirewallPorts
,
tor_strdup
(
"80"
)
)
;
smartlist_add
(
options
->
FirewallPorts
,
tor_strdup
(
"443"
)
)
;
}
if
(
options
->
FirewallPorts
)
{
SMARTLIST_FOREACH
(
options
->
FirewallPorts
,
const
char
*
,
cp
,
...
...
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