Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
81ce667b
Commit
81ce667b
authored
Mar 12, 2000
by
Martin Mareš
Browse files
Don't crash when filter_same() gets called on FILTER_ACCEPT or FILTER_REJECT.
parent
a92bebe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
filter/filter.c
View file @
81ce667b
...
...
@@ -557,5 +557,10 @@ filters_postconfig(void)
int
filter_same
(
struct
filter
*
new
,
struct
filter
*
old
)
{
if
(
old
==
new
)
/* Handle FILTER_ACCEPT and FILTER_REJECT */
return
1
;
if
(
old
==
FILTER_ACCEPT
||
old
==
FILTER_REJECT
||
new
==
FILTER_ACCEPT
||
new
==
FILTER_REJECT
)
return
0
;
return
i_same
(
new
->
root
,
old
->
root
);
}
Write
Preview
Markdown
is supported
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