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
Kirill Smelkov
linux
Commits
ad938c77
Commit
ad938c77
authored
Aug 23, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/unix/af_unix.c: Set msg_namelen in unix_copy_addr properly, define MODULE_LICENSE.
parent
cf99172b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
net/unix/af_unix.c
net/unix/af_unix.c
+2
-6
No files found.
net/unix/af_unix.c
View file @
ad938c77
...
...
@@ -1408,7 +1408,7 @@ static void unix_copy_addr(struct msghdr *msg, struct sock *sk)
{
struct
unix_sock
*
u
=
unix_sk
(
sk
);
msg
->
msg_namelen
=
sizeof
(
short
)
;
msg
->
msg_namelen
=
0
;
if
(
u
->
addr
)
{
msg
->
msg_namelen
=
u
->
addr
->
len
;
memcpy
(
msg
->
msg_name
,
u
->
addr
->
name
,
u
->
addr
->
len
);
...
...
@@ -1917,8 +1917,4 @@ static void __exit af_unix_exit(void)
module_init
(
af_unix_init
);
module_exit
(
af_unix_exit
);
/*
* Local variables:
* compile-command: "gcc -g -D__KERNEL__ -Wall -O6 -I/usr/src/linux/include -c af_unix.c"
* End:
*/
MODULE_LICENSE
(
"GPL"
);
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