Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
81ce667b
Commit
81ce667b
authored
Mar 12, 2000
by
Martin Mareš
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
filter/filter.c
filter/filter.c
+5
-0
No files found.
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