Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
cc67b62f
Commit
cc67b62f
authored
Dec 15, 2015
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Dec 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uninitialized values.
parent
60e20d98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
kernel_netlink.c
kernel_netlink.c
+4
-2
No files found.
kernel_netlink.c
View file @
cc67b62f
...
...
@@ -1399,7 +1399,7 @@ filter_addresses(struct nlmsghdr *nh, struct kernel_addr *addr)
static
int
filter_kernel_rules
(
struct
nlmsghdr
*
nh
,
struct
kernel_rule
*
rule
)
{
int
len
,
has_priority
=
0
;
int
len
,
has_priority
=
0
,
has_table
=
0
;
struct
rtmsg
*
rtm
=
NULL
;
struct
rtattr
*
rta
=
NULL
;
int
is_v4
=
0
;
...
...
@@ -1410,6 +1410,7 @@ filter_kernel_rules(struct nlmsghdr *nh, struct kernel_rule *rule)
len
-=
NLMSG_LENGTH
(
0
);
rule
->
src_plen
=
rtm
->
rtm_src_len
;
memset
(
rule
->
src
,
0
,
sizeof
(
rule
->
src
));
rule
->
table
=
rtm
->
rtm_table
;
if
(
rtm
->
rtm_family
!=
AF_INET
&&
rtm
->
rtm_family
!=
AF_INET6
)
{
...
...
@@ -1434,6 +1435,7 @@ filter_kernel_rules(struct nlmsghdr *nh, struct kernel_rule *rule)
break
;
case
FRA_TABLE
:
rule
->
table
=
*
(
int
*
)
RTA_DATA
(
rta
);
has_table
=
1
;
break
;
default:
kdebugf
(
"filter_rules: Unknown rule attribute: %d.
\n
"
,
...
...
@@ -1446,7 +1448,7 @@ filter_kernel_rules(struct nlmsghdr *nh, struct kernel_rule *rule)
format_prefix
(
rule
->
src
,
rule
->
src_plen
),
has_priority
?
rule
->
priority
:
-
1
,
rule
->
table
);
if
(
!
has_priority
)
if
(
!
has_priority
||
!
has_table
)
return
0
;
return
1
;
...
...
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