]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/unix/af_unix.c
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[mv-sheeva.git] / net / unix / af_unix.c
index 0f133c5a8d3c2a89ea1e045112e82d9f9b7d8d54..3291902f0b8821ce4dda2c34b99b6f968fd8e115 100644 (file)
@@ -1074,6 +1074,8 @@ restart:
        err = -ECONNREFUSED;
        if (other->sk_state != TCP_LISTEN)
                goto out_unlock;
+       if (other->sk_shutdown & RCV_SHUTDOWN)
+               goto out_unlock;
 
        if (unix_recvq_full(other)) {
                err = -EAGAIN;