- return -EPERM instead of silently freeing
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 30 Nov 2004 16:32:22 +0000 (16:32 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 30 Nov 2004 16:32:22 +0000 (16:32 +0000)
include/net/sock.h

index 1f1a1ed..a487663 100644 (file)
@@ -1087,8 +1087,7 @@ static inline int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
         */
        if (inet_stream_ops.bind != inet_bind &&
            (int) sk->sk_xid > 0 && sk->sk_xid != skb->xid) {
-               err = 0; /* ensures that it is silent */
-               kfree_skb(skb); /* discard frame */
+               err = -EPERM;
                goto out;
        }