projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ac9021
)
[TIPC]: Fixed privilege checking typo in dest_name_check().
author
Allan Stephens
<allan.stephens@windriver.com>
Mon, 26 Jun 2006 06:41:47 +0000
(23:41 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 26 Jun 2006 06:41:47 +0000
(23:41 -0700)
This patch originated by Stephane Ouellette <ouellettes@videotron.ca>.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Per Liden <per.liden@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/net/tipc/socket.c
b/net/tipc/socket.c
index 648a734e604418ee38eff4da3a95c35e7cdddea1..eaf4d6951a4a131b9a253ca5a8a96535ade936cb 100644
(file)
--- a/
net/tipc/socket.c
+++ b/
net/tipc/socket.c
@@
-426,7
+426,7
@@
static int dest_name_check(struct sockaddr_tipc *dest, struct msghdr *m)
if (copy_from_user(&hdr, m->msg_iov[0].iov_base, sizeof(hdr)))
return -EFAULT;
- if ((ntohs(hdr.tcm_type) & 0xC000) & (!capable(CAP_NET_ADMIN)))
+ if ((ntohs(hdr.tcm_type) & 0xC000) &
&
(!capable(CAP_NET_ADMIN)))
return -EACCES;
return 0;