diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2006-06-25 23:41:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-06-25 23:41:47 -0700 |
commit | 70cb23477019b8739d23ead223539c7e6dfc509c (patch) | |
tree | 8bcdd7772db92688b5ef30c22515ae58e44361a0 /net/tipc/socket.c | |
parent | 3ac90216abc7d39e694533aec2805efeb06bf8ac (diff) | |
download | kernel_goldelico_gta04-70cb23477019b8739d23ead223539c7e6dfc509c.zip kernel_goldelico_gta04-70cb23477019b8739d23ead223539c7e6dfc509c.tar.gz kernel_goldelico_gta04-70cb23477019b8739d23ead223539c7e6dfc509c.tar.bz2 |
[TIPC]: Fixed privilege checking typo in dest_name_check().
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>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r-- | net/tipc/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 648a734..eaf4d69 100644 --- 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; |