projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4871953
)
NET: llc, zero sockaddr_llc struct
author
Jiri Slaby
<jirislaby@gmail.com>
Mon, 24 Aug 2009 05:55:51 +0000
(22:55 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 24 Aug 2009 05:55:51 +0000
(22:55 -0700)
sllc_arphrd member of sockaddr_llc might not be changed. Zero sllc
before copying to the above layer's structure.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/llc/af_llc.c
patch
|
blob
|
blame
|
history
diff --git
a/net/llc/af_llc.c
b/net/llc/af_llc.c
index 9208cf5f2bd554fb4d66fba51c327bcc3d7a5aae..c45eee1c0e8d46719df66883caa4d874f806ec5f 100644
(file)
--- a/
net/llc/af_llc.c
+++ b/
net/llc/af_llc.c
@@
-914,6
+914,7
@@
static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr,
struct llc_sock *llc = llc_sk(sk);
int rc = 0;
+ memset(&sllc, 0, sizeof(sllc));
lock_sock(sk);
if (sock_flag(sk, SOCK_ZAPPED))
goto out;