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
641172c6
Commit
641172c6
authored
Jul 28, 2015
by
Ondřej Zajíček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Netlink: Fixes uninitialized variable
Thanks to Pavel Tvrdik for the bugfix
parent
538264cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
sysdep/linux/netlink.c
sysdep/linux/netlink.c
+6
-5
No files found.
sysdep/linux/netlink.c
View file @
641172c6
...
...
@@ -100,11 +100,12 @@ nl_request_dump(int af, int cmd)
struct
{
struct
nlmsghdr
nh
;
struct
rtgenmsg
g
;
}
req
;
req
.
nh
.
nlmsg_type
=
cmd
;
req
.
nh
.
nlmsg_len
=
sizeof
(
req
);
req
.
nh
.
nlmsg_flags
=
NLM_F_REQUEST
|
NLM_F_DUMP
;
req
.
g
.
rtgen_family
=
af
;
}
req
=
{
.
nh
.
nlmsg_type
=
cmd
,
.
nh
.
nlmsg_len
=
sizeof
(
req
),
.
nh
.
nlmsg_flags
=
NLM_F_REQUEST
|
NLM_F_DUMP
,
.
g
.
rtgen_family
=
af
};
nl_send
(
&
nl_scan
,
&
req
.
nh
);
}
...
...
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