diff options
Diffstat (limited to 'net/decnet/af_decnet.c')
-rw-r--r-- | net/decnet/af_decnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index 2ba1a2814c24..307c322d53bb 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c | |||
@@ -1313,10 +1313,10 @@ static int dn_shutdown(struct socket *sock, int how) | |||
1313 | if (scp->state == DN_O) | 1313 | if (scp->state == DN_O) |
1314 | goto out; | 1314 | goto out; |
1315 | 1315 | ||
1316 | if (how != SHUTDOWN_MASK) | 1316 | if (how != SHUT_RDWR) |
1317 | goto out; | 1317 | goto out; |
1318 | 1318 | ||
1319 | sk->sk_shutdown = how; | 1319 | sk->sk_shutdown = SHUTDOWN_MASK; |
1320 | dn_destroy_sock(sk); | 1320 | dn_destroy_sock(sk); |
1321 | err = 0; | 1321 | err = 0; |
1322 | 1322 | ||