Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
549a3f23
Commit
549a3f23
authored
Nov 03, 2003
by
David S. Miller
Committed by
David S. Miller
Nov 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETLINK]: Initialize nl_pad in getname and recvmsg, noticed by Uli Drepper.
parent
2ce39f92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
net/netlink/af_netlink.c
net/netlink/af_netlink.c
+2
-0
No files found.
net/netlink/af_netlink.c
View file @
549a3f23
...
...
@@ -394,6 +394,7 @@ static int netlink_getname(struct socket *sock, struct sockaddr *addr, int *addr
struct
sockaddr_nl
*
nladdr
=
(
struct
sockaddr_nl
*
)
addr
;
nladdr
->
nl_family
=
AF_NETLINK
;
nladdr
->
nl_pad
=
0
;
*
addr_len
=
sizeof
(
*
nladdr
);
if
(
peer
)
{
...
...
@@ -717,6 +718,7 @@ static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock,
if
(
msg
->
msg_name
)
{
struct
sockaddr_nl
*
addr
=
(
struct
sockaddr_nl
*
)
msg
->
msg_name
;
addr
->
nl_family
=
AF_NETLINK
;
addr
->
nl_pad
=
0
;
addr
->
nl_pid
=
NETLINK_CB
(
skb
).
pid
;
addr
->
nl_groups
=
NETLINK_CB
(
skb
).
dst_groups
;
msg
->
msg_namelen
=
sizeof
(
*
addr
);
...
...
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