Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361849
b: refs/heads/master
c: 14134f6
h: refs/heads/master
i:
  361847: 6149277
v: v3
  • Loading branch information
dingtianhong authored and David S. Miller committed Mar 26, 2013
1 parent e382597 commit 6707c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 465c0a165938992455357982d7f15ac105528b4a
refs/heads/master: 14134f6584212d585b310ce95428014b653dfaf6
4 changes: 2 additions & 2 deletions trunk/net/unix/af_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1412,8 +1412,8 @@ static void maybe_add_creds(struct sk_buff *skb, const struct socket *sock,
if (UNIXCB(skb).cred)
return;
if (test_bit(SOCK_PASSCRED, &sock->flags) ||
!other->sk_socket ||
test_bit(SOCK_PASSCRED, &other->sk_socket->flags)) {
(other->sk_socket &&
test_bit(SOCK_PASSCRED, &other->sk_socket->flags))) {
UNIXCB(skb).pid = get_pid(task_tgid(current));
UNIXCB(skb).cred = get_current_cred();
}
Expand Down

0 comments on commit 6707c76

Please sign in to comment.