Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236548
b: refs/heads/master
c: d6ae3ba
h: refs/heads/master
v: v3
  • Loading branch information
Alban Crequy authored and David S. Miller committed Jan 19, 2011
1 parent 98d09db commit b64c59d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a5db219f4cf9f67995eabd53b81a1232c82f5852
refs/heads/master: d6ae3bae3d1bf7a8bf367e29f2cac0788dcd0db5
6 changes: 6 additions & 0 deletions trunk/net/unix/af_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,12 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,
goto out_free;
}

if (sk_filter(other, skb) < 0) {
/* Toss the packet but do not return any error to the sender */
err = len;
goto out_free;
}

unix_state_lock(other);
err = -EPERM;
if (!unix_may_send(sk, other))
Expand Down

0 comments on commit b64c59d

Please sign in to comment.